public abstract class AbstractPopupMenu extends Object implements PopupMenu, AdvancedVisibleComponentIteractions<AbstractPopupMenu.AdvancedPopupMenuInteractions>
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractPopupMenu.AdvancedPopupMenuInteractions |
| Constructor and Description |
|---|
AbstractPopupMenu() |
| Modifier and Type | Method and Description |
|---|---|
abstract AbstractPopupMenu.AdvancedPopupMenuInteractions |
advanced() |
protected AbstractPopupMenu |
createSubMenuFragment(org.openqa.selenium.WebElement itemElement)
Creates a page fragment for menu group.
|
PopupMenuGroup |
expandGroup(ChoicePicker picker)
Expands group or sub group from this menu, which satisfies the rules given in
picker param. |
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)
Expands group or sub group from this menu, which index equals the given
index 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)
Expands group or sub group from this menu, which text representation matches the given
header param. |
PopupMenuGroup |
expandGroup(String header,
org.openqa.selenium.WebElement target)
Expands group from this menu, which text representation matches the given
header param. |
protected String |
getNameOfFragment()
Returns the name of the actual page fragment.
|
protected org.openqa.selenium.WebElement |
getRootElement() |
void |
selectItem(ChoicePicker picker)
Selects the menu item from this menu or menu group according to the rules defined in the
picker 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)
Selects the menu item from this menu or menu group according to its index in the list of all menu items.
|
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)
Selects the menu item from this menu or menu group according to the exact match of its text representation with passed
header param. |
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. |
protected AbstractPopupMenu createSubMenuFragment(org.openqa.selenium.WebElement itemElement)
protected String getNameOfFragment()
protected org.openqa.selenium.WebElement getRootElement()
public abstract AbstractPopupMenu.AdvancedPopupMenuInteractions advanced()
advanced in interface AdvancedInteractions<AbstractPopupMenu.AdvancedPopupMenuInteractions>public PopupMenuGroup expandGroup(ChoicePicker picker, org.openqa.selenium.WebElement target)
PopupMenupicker param.
Opens menu, if it is not visible.expandGroup in interface PopupMenupicker - object to define which group should be expandedtarget - for defining the popup menu which will be invoked and from which the item will be selectedpublic PopupMenuGroup expandGroup(String header, org.openqa.selenium.WebElement target)
PopupMenuheader param.
Opens menu, if it is not visible.expandGroup in interface PopupMenuheader - 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 selectedpublic PopupMenuGroup expandGroup(int index, org.openqa.selenium.WebElement target)
PopupMenuindex param.
Opens menu, if it is not visible.expandGroup in interface PopupMenuindex - zero based index of the group to expandtarget - for defining the popup menu which will be invoked and from which the item will be selectedpublic PopupMenuGroup expandGroup(ChoicePicker picker)
PopupMenuGrouppicker param.
Opens menu or sub menu from visible menu, if it is not visible.expandGroup in interface PopupMenuGrouppicker - object to define which group should be expandedpublic PopupMenuGroup expandGroup(String header)
PopupMenuGroupheader param.
Opens menu or sub menu from visible menu, if it is not visible.expandGroup in interface PopupMenuGroupheader - the header of the group which should be expandedpublic PopupMenuGroup expandGroup(int index)
PopupMenuGroupindex param.
Opens menu or sub menu from visible menu, if it is not visible.expandGroup in interface PopupMenuGroupindex - zero based index of the group to expandpublic void selectItem(ChoicePicker picker)
PopupMenuGrouppicker param.
Opens menu or sub menu from visible menu, if it is not visible.selectItem in interface PopupMenuGrouppicker - for defining the rules by which the item will be selectedpublic void selectItem(String header)
PopupMenuGroupheader param.
Opens menu or sub menu from visible menu, if it is not visible.selectItem in interface PopupMenuGroupheader - text representation of the menu item to be selectedpublic void selectItem(int index)
PopupMenuGroupselectItem in interface PopupMenuGroupindex - zero based index of the item to be selectedpublic void selectItem(ChoicePicker picker, org.openqa.selenium.WebElement target)
PopupMenupicker param.
Opens menu, if it is not visible.selectItem in interface PopupMenupicker - 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 selectedpublic void selectItem(String header, org.openqa.selenium.WebElement target)
PopupMenuheader param.
Opens menu, if it is not visible.selectItem in interface PopupMenuheader - 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 selectedpublic void selectItem(int index,
org.openqa.selenium.WebElement target)
PopupMenuselectItem in interface PopupMenuindex - 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 selectedCopyright © 2015 JBoss by Red Hat. All Rights Reserved.