public class HiddenHtmlElement 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 |
|---|
HiddenHtmlElement(UiDriver uiDriver,
UiElementProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
click()
Simulate mouse click action
|
protected void |
clickAndDownloadFile()
Click the element and download file
|
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 this element, including sub-elements, without any leading or trailing whitespace.
|
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 |
setTextContent(String content)
Set the content of the element
|
checkTypeAndRules, getElementProperties, getElementProperty, getPropertyNamesToUseForMatch, getUiDriver, logAction, toStringprotected static final String[] RULES_DUMMY
public HiddenHtmlElement(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 contentprotected void clickAndDownloadFile()
public 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 elementCopyright © 2017 Axway Software. All rights reserved.