public class AutomationWindow extends AutomationContainer
automation, element, user32| Constructor and Description |
|---|
AutomationWindow(AutomationElement element)
Constructor for the AutomationWindow
|
| Modifier and Type | Method and Description |
|---|---|
void |
focus()
Focuses this control.
|
AutomationMainMenu |
getMainMenu()
Gets the main menu associated with this window.
|
AutomationMainMenu |
getMainMenu(int offset)
Gets the main menu associated with this window.
|
AutomationMainMenu |
getMenu(int index)
Gets the menu associated with this window.
|
AutomationStatusBar |
getStatusBar()
Gets the status bar associated with this window
|
AutomationSystemMenu |
getSystemMenu()
Gets the system menu associated with this window
|
AutomationTitleBar |
getTitleBar()
Get the AutomationTitleBar associated with the given name
|
AutomationWindow |
getWindow(String title)
Finds the child window with the given title
|
boolean |
isModal()
Whether this window is modal
|
boolean |
isTopMost()
Whether this window is topmost
|
void |
maximize()
Maximize the window
|
void |
minimize()
Minimize the window
|
void |
waitForInputIdle(int timeout)
Waits for this window to become idle.
|
dumpUI, getAppBar, getButton, getButton, getButtonByAutomationId, getCalendar, getCheckbox, getCombobox, getCombobox, getControlByAutomationId, getControlByControlType, getControlByControlType, getControlByControlType, getCustom, getDataGrid, getDataGrid, getDocument, getEditBox, getEditBox, getHyperlink, getImage, getListItem, getMaskedEdit, getMaskedEdit, getPanel, getPanel, getPasswordEditBox, getProgressBar, getProgressBar, getRadioButton, getReBar, getRibbonBar, getSlider, getSlider, getSpinner, getSplitButton, getTab, getTextBox, getToolBar, getToolBar, getTreeView, getTreeViewcreateAndCondition, 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 AutomationWindow(AutomationElement element)
element - The underlying elementpublic void focus()
public AutomationStatusBar getStatusBar()
public AutomationSystemMenu getSystemMenu()
public AutomationMainMenu getMainMenu()
public AutomationMainMenu getMainMenu(int offset)
offset - The menu offset to getpublic AutomationMainMenu getMenu(int index)
index - Index of the menupublic void waitForInputIdle(int timeout)
timeout - The timeoutpublic void maximize()
public void minimize()
public AutomationWindow getWindow(String title) throws ItemNotFoundException
title - Title to search forItemNotFoundException - when the item is not foundpublic boolean isModal()
public boolean isTopMost()
public AutomationTitleBar getTitleBar()
Copyright © 2016. All rights reserved.