public abstract class HtmlElement extends UiElement
span, div, etc.
Such elements could be located by any HTML attribute including custom ones.
Special cases:
_text attribute for finding elements by certain text (in-between tags)
_partText attribute for finding elements by partial match of text in-between tags
_inputType attribute for locating elements by their type attribute.
_inputType is replaced with type HTML attribute when generating element''s XPath
log, properties| Constructor and Description |
|---|
HtmlElement(UiDriver uiDriver,
UiElementProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
click()
Simulate mouse click action
|
abstract void |
doubleClick()
Simulate mouse double click action
|
abstract void |
dragAndDropTo(HtmlElement targetElement)
Drag and drop an element on top of other element
|
abstract String |
getAttributeValue(String attribute)
Get element attribute value
|
abstract String |
getCssPropertyValue(String propertyName)
Get CSS property value
|
abstract String |
getTextContent()
Get text content of the element
|
abstract void |
mouseOver()
Simulate mouse over
|
abstract void |
pressEnterKey()
Simulate Enter key
|
abstract void |
pressEscapeKey()
Simulate Escape key
|
abstract void |
pressSpaceKey()
Simulate Space key
|
abstract void |
pressTabKey()
Simulate Tab key
|
abstract void |
rightClick()
Simulate mouse right click action
|
abstract void |
setTextContent(String content)
Set the content of the element
|
checkTypeAndRules, getElementProperties, getElementProperty, getPropertyNamesToUseForMatch, getUiDriver, logAction, toStringpublic HtmlElement(UiDriver uiDriver, UiElementProperties properties)
public abstract String getAttributeValue(String attribute)
public abstract String getCssPropertyValue(String propertyName)
propertyName - CSS property namepublic abstract String getTextContent()
public abstract void setTextContent(String content)
content - the new contentpublic abstract void click()
public abstract void doubleClick()
public abstract void rightClick()
public abstract void mouseOver()
public abstract void pressEnterKey()
public abstract void pressSpaceKey()
public abstract void pressTabKey()
public abstract void pressEscapeKey()
public abstract void dragAndDropTo(HtmlElement targetElement)
targetElement - the target elementCopyright © 2017 Axway Software. All rights reserved.