public class RealHtmlElement extends HtmlElement
span, div, etc.
For more info check documentation of HtmlElement
| Modifier and Type | Field and Description |
|---|---|
protected static String[] |
RULES_DUMMY
used by all HiddenHtmlXYZ classes for passing it to UiElementProperties's method checkTypeAndRules()
|
log, properties| Constructor and Description |
|---|
RealHtmlElement(UiDriver uiDriver,
UiElementProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
click()
Simulate mouse click action
|
void |
doubleClick()
Simulate mouse double click action
|
void |
dragAndDropTo(HtmlElement targetElement)
Drag and drop an element on top of other element
|
String |
getAttributeValue(String attribute)
Get element attribute value
|
String |
getCssPropertyValue(String propertyName)
Get CSS property value
|
String |
getTextContent()
Get innerText of the element
|
void |
mouseOver()
Simulate mouse over
|
void |
pressEnterKey()
Simulate Enter key
|
void |
pressEscapeKey()
Simulate Escape key
|
void |
pressSpaceKey()
Simulate Space key
|
void |
pressTabKey()
Simulate Tab key
|
void |
rightClick()
Simulate mouse right click action
|
void |
scrollTo()
Scroll to this element, so it is viewable.
|
void |
setTextContent(String content)
Set the content of the element
|
checkTypeAndRules, getElementProperties, getElementProperty, getPropertyNamesToUseForMatch, getUiDriver, logAction, toStringprotected static final String[] RULES_DUMMY
public RealHtmlElement(UiDriver uiDriver, UiElementProperties properties)
public String getAttributeValue(String attribute)
getAttributeValue in class HtmlElementpublic String getCssPropertyValue(String propertyName)
getCssPropertyValue in class HtmlElementpropertyName - CSS property namepublic String getTextContent()
getTextContent in class HtmlElementpublic void setTextContent(String content)
setTextContent in class HtmlElementcontent - the new contentpublic void click()
click in class HtmlElementpublic void doubleClick()
doubleClick in class HtmlElementpublic void rightClick()
rightClick in class HtmlElementpublic void mouseOver()
mouseOver in class HtmlElementpublic void pressEnterKey()
pressEnterKey in class HtmlElementpublic void pressSpaceKey()
pressSpaceKey in class HtmlElementpublic void pressTabKey()
pressTabKey in class HtmlElementpublic void pressEscapeKey()
pressEscapeKey in class HtmlElementpublic void dragAndDropTo(HtmlElement targetElement)
dragAndDropTo in class HtmlElementtargetElement - the target elementpublic void scrollTo()
Copyright © 2017 Axway Software. All rights reserved.