public class AutomationApplication extends AutomationBase
automation, element, user32| Constructor and Description |
|---|
AutomationApplication(AutomationElement element,
Process process,
boolean attached)
Constructor for the AutomationApplication.
|
AutomationApplication(AutomationElement element,
com.sun.jna.platform.win32.WinNT.HANDLE handle,
boolean attached)
Constructor for the AutomationApplication.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getIsAttached()
Gets whether the application was already running
|
AutomationWindow |
getWindow(String title)
Gets the window associated with the title
|
void |
setIsAttached(boolean value)
Sets the isAttached value
|
void |
waitForInputIdle()
Waits for the application to accept input, i.e.
|
void |
waitForInputIdle(int timeout)
Waits for the application to accept input, i.e.
|
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 AutomationApplication(AutomationElement element, com.sun.jna.platform.win32.WinNT.HANDLE handle, boolean attached)
element - The underlying automation elementhandle - The handle of this application.attached - if we attach or launch the application?public AutomationApplication(AutomationElement element, Process process, boolean attached)
element - The underlying automation elementprocess - The process for this application.attached - if we attach or launch the application?public void waitForInputIdle(int timeout)
timeout - Timeout to wait forpublic boolean getIsAttached()
public void setIsAttached(boolean value)
value - True or falsepublic void waitForInputIdle()
public AutomationWindow getWindow(String title) throws ElementNotFoundException
title - The title to look forElementNotFoundException - Count find elementCopyright © 2016. All rights reserved.