Package com.axway.ats.uiengine.elements
Class UiElement
- java.lang.Object
-
- com.axway.ats.uiengine.elements.UiElement
-
- Direct Known Subclasses:
HtmlElement,MobileElement,SwingComponent,SwingLabel,SwingOptionPane,SwingPopupMenu,SwingRadioButton,SwingSpinner,SwingTabbedPane,SwingToggleButton,UiAlert,UiButton,UiCheckBox,UiComboBox,UiConfirm,UiFileBrowse,UiLink,UiMultiSelectList,UiPrompt,UiRadioButton,UiRadioList,UiSingleSelectList,UiTable,UiTextArea,UiTextBox,UiTree
public abstract class UiElement extends Object
An abstraction of an element UI Engine can work with
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.log4j.Loggerlogprotected UiElementPropertiespropertiesActual property names and values to match
-
Constructor Summary
Constructors Constructor Description UiElement(UiDriver uiDriver, UiElementProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckTypeAndRules(String userTypePrefix, String... rules)Check against passed rules and return first (largest in number of properties assumed) matchingUiElementPropertiesgetElementProperties()StringgetElementProperty(String name)String[]getPropertyNamesToUseForMatch()UiDrivergetUiDriver()protected voidlogAction()StringtoString()
-
-
-
Field Detail
-
properties
protected UiElementProperties properties
Actual property names and values to match
-
log
protected org.apache.log4j.Logger log
-
-
Constructor Detail
-
UiElement
public UiElement(UiDriver uiDriver, UiElementProperties properties)
-
-
Method Detail
-
getUiDriver
public UiDriver getUiDriver()
-
getElementProperties
public UiElementProperties getElementProperties()
-
logAction
protected void logAction()
-
getPropertyNamesToUseForMatch
public String[] getPropertyNamesToUseForMatch()
-
checkTypeAndRules
public void checkTypeAndRules(String userTypePrefix, String... rules) throws ErrorMatchingElementRules
Check against passed rules and return first (largest in number of properties assumed) matching- Parameters:
userTypePrefix- component type prefix like Swing, Html ...rules- array of rules( of properties) valid for UiElement identification- Throws:
ErrorMatchingElementRules
-
-