public class AutomationMenuItem extends AutomationBase
automation, element, user32| Constructor and Description |
|---|
AutomationMenuItem(AutomationElement element)
Construct the AutomationMenuItem
|
| Modifier and Type | Method and Description |
|---|---|
void |
click()
Invoke the click pattern for the menu item
|
void |
collapse()
Collapses the element
|
void |
expand()
Expands the element
|
List<AutomationMenuItem> |
getItems()
Gets the list of items associatd with this menuitem
|
boolean |
isExpanded()
Is the control expanded
|
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 AutomationMenuItem(AutomationElement element)
element - The elementpublic void click()
public List<AutomationMenuItem> getItems()
public boolean isExpanded()
public void collapse()
public void expand()
Copyright © 2016. All rights reserved.