public class SwingPopupMenu extends UiElement
Can be identified by:
log, properties| Constructor and Description |
|---|
SwingPopupMenu(UiDriver uiDriver,
UiElementProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
click()
Click pop-up element
|
void |
clickMenuItemByName(String menuItemName)
Click
MenuItem pop-up element by its 'name' attribute value |
void |
clickMenuItemByText(String... menuItemText)
Click
MenuItem pop-up element by text (actually it's the 'label' attribute value) |
String[] |
getMenuLabels()
Getting menu labels/texts
|
String[] |
getVisibleMenuLabels()
Getting only visible menu labels/texts
|
checkTypeAndRules, getElementProperties, getElementProperty, getPropertyNamesToUseForMatch, getUiDriver, logAction, toStringpublic SwingPopupMenu(UiDriver uiDriver, UiElementProperties properties)
public void click()
VerificationException - if the element doesn't existpublic void clickMenuItemByName(String menuItemName)
MenuItem pop-up element by its 'name' attribute valuemenuItemName - MenuItem name attribute valuepublic void clickMenuItemByText(String... menuItemText)
MenuItem pop-up element by text (actually it's the 'label' attribute value)menuItemText - MenuItem text/labelpublic String[] getMenuLabels()
public String[] getVisibleMenuLabels()
Copyright © 2017 Axway Software. All rights reserved.