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 String |
getNameOfFragment()
Returns the name of the actual page fragment.
|
protected org.openqa.selenium.WebElement |
getRootElement() |
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 String getNameOfFragment()
protected org.openqa.selenium.WebElement getRootElement()
public abstract AbstractPopupMenu.AdvancedPopupMenuInteractions advanced()
advanced
in interface AdvancedInteractions<AbstractPopupMenu.AdvancedPopupMenuInteractions>
public void selectItem(ChoicePicker picker)
PopupMenu
picker
param.selectItem
in interface PopupMenu
picker
- for defining the rules by which the item will be selectedpublic void selectItem(String header)
PopupMenu
header
param.selectItem
in interface PopupMenu
header
- text representation of the menu item to be selectedpublic void selectItem(int index)
PopupMenu
selectItem
in interface PopupMenu
index
- zero based index of the item to be selectedpublic void selectItem(ChoicePicker picker, org.openqa.selenium.WebElement target)
PopupMenu
picker
param.selectItem
in interface PopupMenu
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 selectedpublic void selectItem(String header, org.openqa.selenium.WebElement target)
PopupMenu
header
param.selectItem
in interface PopupMenu
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 selectedpublic void selectItem(int index, org.openqa.selenium.WebElement target)
PopupMenu
selectItem
in interface PopupMenu
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 selectedCopyright © 2014 JBoss by Red Hat. All Rights Reserved.