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)
PopupMenu
picker
param.
Opens menu, if it is not visible.expandGroup
in interface PopupMenu
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 selectedpublic PopupMenuGroup expandGroup(String header, org.openqa.selenium.WebElement target)
PopupMenu
header
param.
Opens menu, if it is not visible.expandGroup
in interface PopupMenu
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 selectedpublic PopupMenuGroup expandGroup(int index, org.openqa.selenium.WebElement target)
PopupMenu
index
param.
Opens menu, if it is not visible.expandGroup
in interface PopupMenu
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 selectedpublic PopupMenuGroup expandGroup(ChoicePicker picker)
PopupMenuGroup
picker
param.
Opens menu or sub menu from visible menu, if it is not visible.expandGroup
in interface PopupMenuGroup
picker
- object to define which group should be expandedpublic PopupMenuGroup expandGroup(String header)
PopupMenuGroup
header
param.
Opens menu or sub menu from visible menu, if it is not visible.expandGroup
in interface PopupMenuGroup
header
- the header of the group which should be expandedpublic PopupMenuGroup expandGroup(int index)
PopupMenuGroup
index
param.
Opens menu or sub menu from visible menu, if it is not visible.expandGroup
in interface PopupMenuGroup
index
- zero based index of the group to expandpublic void selectItem(ChoicePicker picker)
PopupMenuGroup
picker
param.
Opens menu or sub menu from visible menu, if it is not visible.selectItem
in interface PopupMenuGroup
picker
- for defining the rules by which the item will be selectedpublic void selectItem(String header)
PopupMenuGroup
header
param.
Opens menu or sub menu from visible menu, if it is not visible.selectItem
in interface PopupMenuGroup
header
- text representation of the menu item to be selectedpublic void selectItem(int index)
PopupMenuGroup
selectItem
in interface PopupMenuGroup
index
- zero based index of the item to be selectedpublic void selectItem(ChoicePicker picker, org.openqa.selenium.WebElement target)
PopupMenu
picker
param.
Opens menu, if it is not visible.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.
Opens menu, if it is not visible.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 © 2016 JBoss by Red Hat. All Rights Reserved.