public abstract class AbstractPopupMenu extends Object implements PopupMenu, AdvancedInteractions<AbstractPopupMenu.AdvancedPopupMenuInteractions>
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractPopupMenu.AdvancedPopupMenuInteractions |
| Constructor and Description |
|---|
AbstractPopupMenu() |
| Modifier and Type | Method and Description |
|---|---|
AbstractPopupMenu.AdvancedPopupMenuInteractions |
advanced() |
protected abstract List<org.openqa.selenium.WebElement> |
getMenuItemElementsInternal()
Returns all elements of this menu
|
protected abstract org.openqa.selenium.WebElement |
getMenuPopupInternal()
Returns the popup element of the menu
|
protected String |
getNameOfFragment()
Returns the name of the actual page fragment.
|
protected org.openqa.selenium.WebElement |
getRootElement() |
protected abstract org.openqa.selenium.WebElement |
getScriptElement() |
void |
selectItem(ChoicePicker picker)
Selects the menu item according to the rules defined in the
picker param. |
void |
selectItem(ChoicePicker picker,
org.openqa.selenium.WebElement target)
Selects the menu item according to the rules defined in the
picker param. |
void |
selectItem(int index)
Selects the menu item according to its index in the list of all menu items.
|
void |
selectItem(int index,
org.openqa.selenium.WebElement target)
Selects the menu item according to its index in the list of all menu items.
|
void |
selectItem(String header)
Selects the menu item 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 according to the exact match of its text representation with passed
header param. |
protected abstract org.openqa.selenium.WebElement getMenuPopupInternal()
protected abstract List<org.openqa.selenium.WebElement> getMenuItemElementsInternal()
protected String getNameOfFragment()
protected org.openqa.selenium.WebElement getRootElement()
protected abstract org.openqa.selenium.WebElement getScriptElement()
public AbstractPopupMenu.AdvancedPopupMenuInteractions advanced()
advanced in interface AdvancedInteractions<AbstractPopupMenu.AdvancedPopupMenuInteractions>public void selectItem(ChoicePicker picker)
PopupMenupicker param.selectItem in interface PopupMenupicker - for defining the rules by which the item will be selectedpublic void selectItem(String header)
PopupMenuheader param.selectItem in interface PopupMenuheader - text representation of the menu item to be selectedpublic void selectItem(int index)
PopupMenuselectItem in interface PopupMenuindex - zero based index of the item to be selectedpublic void selectItem(ChoicePicker picker, org.openqa.selenium.WebElement target)
PopupMenupicker param.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.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 © 2014 JBoss by Red Hat. All rights reserved.