public abstract class AbstractPanelMenu extends Object implements PanelMenu, PanelMenuGroup, AdvancedVisibleComponentIteractions<AbstractPanelMenu.AdvancedAbstractPanelMenuInteractions>
Modifier and Type | Class and Description |
---|---|
class |
AbstractPanelMenu.AdvancedAbstractPanelMenuInteractions |
Constructor and Description |
---|
AbstractPanelMenu() |
Modifier and Type | Method and Description |
---|---|
abstract AbstractPanelMenu.AdvancedAbstractPanelMenuInteractions |
advanced() |
PanelMenu |
collapseAll()
Collapses all enabled and visible groups.
|
void |
collapseGroup(ChoicePicker picker)
Collapses group which satisfies the rules given in
picker object. |
void |
collapseGroup(int index)
Collapses group which index equals the given
index . |
void |
collapseGroup(String header)
Collapses group which text representation matches the given
header . |
PanelMenu |
expandAll()
Expands all enabled and visible groups.
|
PanelMenuGroup |
expandGroup(ChoicePicker picker)
Expands group which satisfies the rules given in
picker object. |
PanelMenuGroup |
expandGroup(int index)
Expands group which index equals the given
index . |
PanelMenuGroup |
expandGroup(String header)
Expands group which text representation matches the given
header . |
abstract List<org.openqa.selenium.WebElement> |
getMenuGroups() |
abstract List<org.openqa.selenium.WebElement> |
getMenuItems() |
PanelMenuItem |
selectItem(ChoicePicker picker)
Selects a menu item which satisfies the rules given in
picker object. |
PanelMenuItem |
selectItem(int index)
Selects a menu item which index equals the given
index . |
PanelMenuItem |
selectItem(String header)
Selects a menu item which text representation matches the given
header . |
public PanelMenuItem selectItem(ChoicePicker picker)
PanelMenu
picker
object.
Note that item needs to be enabled and visible before calling this method.selectItem
in interface PanelMenu
picker
- object to define which item should be selectedpublic PanelMenuItem selectItem(String header)
PanelMenu
header
.
Note that item needs to be enabled and visible before calling this method.selectItem
in interface PanelMenu
header
- the header of the item which should be selectedpublic PanelMenuItem selectItem(int index)
PanelMenu
index
.
Note that item need to be enabled and visible before calling this method.selectItem
in interface PanelMenu
index
- 0 based index of the item to be selectedpublic PanelMenuGroup expandGroup(ChoicePicker picker)
PanelMenu
picker
object.
Note that group need to be enabled and visible before calling this method.expandGroup
in interface PanelMenu
picker
- object to define which group should be expandedpublic PanelMenuGroup expandGroup(String header)
PanelMenu
header
.
Note that group need to be enabled and visible before calling this method.expandGroup
in interface PanelMenu
header
- the header of the group which should be expandedpublic PanelMenuGroup expandGroup(int index)
PanelMenu
index
.
Note that group need to be enabled and visible before calling this method.expandGroup
in interface PanelMenu
index
- 0 based index of the group to expandpublic void collapseGroup(ChoicePicker picker)
PanelMenu
picker
object.
Note that group need to be enabled and visible before calling this method.collapseGroup
in interface PanelMenu
picker
- object to define which group should be collapsedpublic void collapseGroup(String header)
PanelMenu
header
.
Note that group need to be enabled and visible before calling this method.collapseGroup
in interface PanelMenu
header
- the header of the group which should be collapsedpublic void collapseGroup(int index)
PanelMenu
index
.
Note that group needs to be enabled and visible before calling this method.collapseGroup
in interface PanelMenu
index
- 0 based index of the group to collapsepublic PanelMenu expandAll()
PanelMenu
public PanelMenu collapseAll()
PanelMenu
collapseAll
in interface PanelMenu
public abstract List<org.openqa.selenium.WebElement> getMenuItems()
public abstract List<org.openqa.selenium.WebElement> getMenuGroups()
public abstract AbstractPanelMenu.AdvancedAbstractPanelMenuInteractions advanced()
advanced
in interface AdvancedInteractions<AbstractPanelMenu.AdvancedAbstractPanelMenuInteractions>
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.