public class AutomationMainMenu extends AutomationBase
automation, element, user32| Constructor and Description |
|---|
AutomationMainMenu(AutomationElement parent,
AutomationElement element)
Constructor for AutomationMainMenu
|
| Modifier and Type | Method and Description |
|---|---|
List<AutomationMenuItem> |
getItems()
Gets the items associated with this menu control
|
AutomationMenuItem |
getMenuItem(String name0,
String name1)
Get the menu item associated with the hierarchy of names
|
void |
menuItemFudge(String item0,
int eventKey)
Get the menu item associated with the hierarchy of names.
|
createAndCondition, createAutomationIdPropertyCondition, createControlTypeCondition, createFalseCondition, createNamePropertyCondition, createOrCondition, createTrueCondition, findAll, findAll, findAll, findAllBuildCache, findFirst, findFirstBuildCache, getAcceleratorKey, getAriaRole, getBoundingRectangle, getClickablePoint, getExpandCollapsePattern, getFramework, getFrameworkId, getGridPattern, getInvokePattern, getItemStatus, getNativeWindowHandle, getOrientation, getProcessId, getProviderDescription, getRangePattern, getRuntimeId, getSelectionPattern, getSelectItemPattern, getTablePattern, getTextPattern, getTogglePattern, getValuePattern, getWindowPattern, isDockPatternAvailable, isEnabled, isExpandCollapsePatternAvailable, isGridItemPatternAvailable, isGridPatternAvailable, isInvokePatternAvailable, isMultipleViewPatternAvailable, isOffScreen, isRangeValuePatternAvailable, isScrollItemPatternAvailable, isScrollPatternAvailable, isSelectionItemPatternAvailable, isSelectionPatternAvailable, isTableItemPatternAvailable, isTablePatternAvailable, isTextPatternAvailable, isTogglePatternAvailable, isTransformPatternAvailable, isValuePatternAvailable, isWindowPatternAvailable, name, setNamepublic AutomationMainMenu(AutomationElement parent, AutomationElement element)
parent - Parent of the elementelement - The elementpublic void menuItemFudge(String item0, int eventKey) throws ElementNotFoundException
item0 - Top level menu itemeventKey - Key to pressElementNotFoundException - Thrown when the element is not found.public AutomationMenuItem getMenuItem(String name0, String name1) throws ElementNotFoundException
name0 - First Namename1 - Second nameElementNotFoundException - Menu element not foundpublic List<AutomationMenuItem> getItems()
Copyright © 2016. All rights reserved.