public class AutomationContainer extends AutomationBase
automation, element, user32| Constructor and Description |
|---|
AutomationContainer(AutomationElement element)
Constructor for AutomationContainer
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpUI()
Dumps the control tree, used for exploring interfaces
|
AutomationAppBar |
getAppBar(int index)
Get the AppBar associated with the given index
|
AutomationButton |
getButton(int index)
Gets the button control associated with the given index
|
AutomationButton |
getButton(String name)
Gets the button control associated with the given name
|
AutomationButton |
getButtonByAutomationId(String id)
Gets the button using the automation ID
|
AutomationCalendar |
getCalendar(int index)
Gets the calendar control associated with the given index
|
AutomationCheckbox |
getCheckbox(int index)
Gets the checkbox associated with the given index
|
AutomationComboBox |
getCombobox(int index)
Gets the combobox control associated with the given name
|
AutomationComboBox |
getCombobox(String name)
Gets the combobox control associated with the given name
|
protected AutomationElement |
getControlByAutomationId(String automationId,
int controlType)
Gets the control by the control type and automation ID
|
protected AutomationElement |
getControlByControlType(int index,
int id,
String controlName)
Gets the control by the control type, for s given control index
|
protected AutomationElement |
getControlByControlType(String name,
int id)
Gets the control by the control type
|
protected AutomationElement |
getControlByControlType(String name,
int id,
String controlName)
Gets the control by the control type, for s given control index.
|
AutomationCustom |
getCustom(String name)
Get the AutomationCustom element associated with the given name
|
AutomationDataGrid |
getDataGrid(int index)
Gets the String Grid control associated with the given index
|
AutomationDataGrid |
getDataGrid(int index,
String controlName)
Gets the String Grid control associated with the given index, with a specific control name
|
AutomationDocument |
getDocument(int index)
Gets the document associated with the given index
|
AutomationEditBox |
getEditBox(int index)
Gets the Editbox control associated with the given index
|
AutomationEditBox |
getEditBox(String name)
Gets the Editbox control associated with the given name
|
AutomationHyperlink |
getHyperlink(int index)
Gets the hyperlink control associated with the given index
|
AutomationImage |
getImage(String name)
Get the AutomationImage associated with the given name
|
AutomationList |
getListItem(int index)
Gets the list control associated with the given index
|
AutomationMaskedEdit |
getMaskedEdit(int index)
Gets the (JHC) Masked Edit control associated with the given index
|
AutomationMaskedEdit |
getMaskedEdit(String name)
Gets the (JHC) Masked Edit control associated with the given index
|
AutomationPanel |
getPanel(int index)
Gets the panel control associated with the given index
|
AutomationPanel |
getPanel(String name)
Gets the panel control associated with the given name
|
AutomationEditBox |
getPasswordEditBox(int index)
Gets the EditBox (with password marking) associated with the given index
|
AutomationProgressBar |
getProgressBar(int index)
Gets the ProgressBar control associated with the given index
|
AutomationProgressBar |
getProgressBar(String name)
Gets the ProgressBar control associated with the given index
|
AutomationRadioButton |
getRadioButton(int index)
Gets the radio button control associated with the given index
|
AutomationReBar |
getReBar(int index)
Gets the AutomationReBar associated with this index
|
AutomationRibbonBar |
getRibbonBar()
Get the RibbonBar associated this container
|
AutomationSlider |
getSlider(int index)
Gets the slider control associated with the given index
|
AutomationSlider |
getSlider(String name)
Gets the slider control associated with the given index
|
AutomationSpinner |
getSpinner(String name)
Get the AutomationSpinner element associated with the given name
|
AutomationSplitButton |
getSplitButton(String name)
Get the AutomationSplitButton associated with the given name
|
AutomationTab |
getTab(int index)
Gets the Tab control associated with the given index
|
AutomationTextBox |
getTextBox(int index)
Gets the text box control associated with the given index
|
AutomationToolBar |
getToolBar(int index)
Get the ToolBar associated with the given index
|
AutomationToolBar |
getToolBar(String name)
Get the ToolBar associated with the given name
|
AutomationTreeView |
getTreeView(int index)
Gets the treeview control associated with the given index
|
AutomationTreeView |
getTreeView(String name)
Gets the treeview control associated with the given name
|
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 AutomationContainer(AutomationElement element)
element - The underlying elementprotected AutomationElement getControlByControlType(int index, int id, String controlName)
index - Index of the controlid - Control typecontrolName - The control name to useprotected AutomationElement getControlByControlType(String name, int id, String controlName) throws ElementNotFoundException
name - Name of the controlid - Control typecontrolName - The control name to useElementNotFoundException - Did not find the elementprotected AutomationElement getControlByControlType(String name, int id) throws ElementNotFoundException
name - Name to useid - Control typeElementNotFoundException - Did not find the elementprotected AutomationElement getControlByAutomationId(String automationId, int controlType) throws ElementNotFoundException
automationId - Name to usecontrolType - Control typeElementNotFoundException - Did not find the elementpublic AutomationCheckbox getCheckbox(int index)
index - Index of the controlpublic AutomationTab getTab(int index)
index - Index of the controlpublic AutomationEditBox getEditBox(int index)
index - Index of the controlpublic AutomationEditBox getPasswordEditBox(int index)
index - The indexpublic AutomationProgressBar getProgressBar(int index)
index - Index of the controlpublic AutomationProgressBar getProgressBar(String name) throws ElementNotFoundException
name - Name of the controlElementNotFoundException - Did not find the elementpublic AutomationEditBox getEditBox(String name) throws ElementNotFoundException
name - Name of the controlElementNotFoundException - Did not find the elementpublic AutomationSlider getSlider(int index)
index - Index of the controlpublic AutomationSlider getSlider(String name) throws ElementNotFoundException
name - Name of the controlElementNotFoundException - Did not find the elementpublic AutomationMaskedEdit getMaskedEdit(int index)
index - Index of the controlpublic AutomationMaskedEdit getMaskedEdit(String name) throws ElementNotFoundException
name - Name of the controlElementNotFoundException - Did not find the elementpublic AutomationRadioButton getRadioButton(int index)
index - Index of the controlpublic AutomationTextBox getTextBox(int index)
index - Index of the controlpublic AutomationComboBox getCombobox(int index) throws ElementNotFoundException
index - Index of the controlElementNotFoundException - Did not find the elementpublic AutomationComboBox getCombobox(String name) throws ElementNotFoundException
name - Name of the controlElementNotFoundException - Did not find the elementpublic AutomationButton getButton(String name) throws ElementNotFoundException
name - Name of the controlElementNotFoundException - Did not find the elementpublic AutomationButton getButtonByAutomationId(String id) throws ElementNotFoundException
id - The automation idElementNotFoundException - Did not find the elementpublic AutomationButton getButton(int index)
index - The index of the buttonpublic AutomationDataGrid getDataGrid(int index, String controlName)
index - Index of the controlcontrolName* - public AutomationDataGrid getDataGrid(int index)
index - The index to look forpublic AutomationDocument getDocument(int index)
index - Index of the controlpublic AutomationHyperlink getHyperlink(int index)
index - Index of the controlpublic AutomationTreeView getTreeView(int index)
index - Index of the controlpublic AutomationTreeView getTreeView(String name) throws ElementNotFoundException
name - Name of the controlElementNotFoundException - Did not find the elementpublic AutomationList getListItem(int index)
index - Index of the controlpublic AutomationCalendar getCalendar(int index)
index - Index of the controlpublic AutomationPanel getPanel(int index)
index - Index of the controlpublic AutomationPanel getPanel(String name) throws ElementNotFoundException
name - Name of the controlElementNotFoundException - Did not find the elementpublic AutomationAppBar getAppBar(int index)
index - The indexpublic AutomationToolBar getToolBar(String name) throws ElementNotFoundException
name - The nameElementNotFoundException - Did not find the elementpublic AutomationToolBar getToolBar(int index)
index - The indexpublic AutomationRibbonBar getRibbonBar()
public AutomationReBar getReBar(int index)
index - The indexpublic AutomationSplitButton getSplitButton(String name) throws ElementNotFoundException
name - The name to look forElementNotFoundException - Did not find the elementpublic AutomationImage getImage(String name) throws ElementNotFoundException
name - The name to look forElementNotFoundException - Did not find the elementpublic AutomationSpinner getSpinner(String name) throws ElementNotFoundException
name - The name to look forElementNotFoundException - Did not find the elementpublic AutomationCustom getCustom(String name) throws ElementNotFoundException
name - The name to look forElementNotFoundException - Did not find the elementpublic void dumpUI()
Copyright © 2016. All rights reserved.