public interface PopupMenu extends PopupMenuGroup
| Modifier and Type | Method and Description |
|---|---|
PopupMenuGroup |
expandGroup(ChoicePicker picker,
org.openqa.selenium.WebElement target)
Expands group from this menu, which satisfies the rules given in
picker param. |
PopupMenuGroup |
expandGroup(int index,
org.openqa.selenium.WebElement target)
Expands group from this menu, which index equals the given
index param. |
PopupMenuGroup |
expandGroup(String header,
org.openqa.selenium.WebElement target)
Expands group from this menu, which text representation matches the given
header param. |
void |
selectItem(ChoicePicker picker,
org.openqa.selenium.WebElement target)
Selects the menu item from this menu or sub menu according to the rules defined in the
picker param. |
void |
selectItem(int index,
org.openqa.selenium.WebElement target)
Selects the menu item from this menu according to its index in the list of all menu items.
|
void |
selectItem(String header,
org.openqa.selenium.WebElement target)
Selects the menu item from this menu according to the exact match of its text representation with passed
header param. |
expandGroup, expandGroup, expandGroup, selectItem, selectItem, selectItemvoid selectItem(ChoicePicker picker, org.openqa.selenium.WebElement target)
picker param.
Opens menu, if it is not visible.picker - for defining the rules by which the item will be selectedtarget - for defining the popup menu which will be invoked and from which the item will be selectedIllegalArgumentException - if there is no such element which satisfies the rules given by pickervoid selectItem(String header, org.openqa.selenium.WebElement target)
header param.
Opens menu, if it is not visible.header - text representation of the menu item to be selectedtarget - for defining the popup menu which will be invoked and from which the item will be selectedIllegalArgumentException - if there is no such element with text representation matching the given headervoid selectItem(int index,
org.openqa.selenium.WebElement target)
index - zero based index of the item to be selectedtarget - for defining the popup menu which will be invoked and from which the item will be selectedIllegalArgumentException - if there is no such element with index indexPopupMenuGroup expandGroup(ChoicePicker picker, org.openqa.selenium.WebElement target)
picker param.
Opens menu, if it is not visible.picker - object to define which group should be expandedtarget - for defining the popup menu which will be invoked and from which the item will be selectedIllegalArgumentException - if there is no such element which satisfies the rules given by pickerPopupMenuGroup expandGroup(String header, org.openqa.selenium.WebElement target)
header param.
Opens menu, if it is not visible.header - the header of the group which should be expandedtarget - for defining the popup menu which will be invoked and from which the item will be selectedIllegalArgumentException - if there is no such element with text representation matching the given headerPopupMenuGroup expandGroup(int index, org.openqa.selenium.WebElement target)
index param.
Opens menu, if it is not visible.index - zero based index of the group to expandtarget - for defining the popup menu which will be invoked and from which the item will be selectedIllegalArgumentException - if there is no such element with index indexCopyright © 2015 JBoss by Red Hat. All Rights Reserved.