public class Element extends DefaultRefreshable
Modifier and Type | Field and Description |
---|---|
protected org.openqa.selenium.WebElement |
clickableWebElement
clickableWebElement represents the WebElement that is clickable.
|
protected boolean |
disabled |
protected java.lang.String |
iconURL |
protected java.lang.String |
label
The property
label is text that is shown on the component.If the text containing leading/ending spaces, then it will be trimmed and stored in this property. |
static java.lang.String |
PROPERTY_CLASS
'class' property returns the value of attribut 'class' of the specified DOM node.
|
static java.lang.String |
PROPERTY_DISABLED
'disabled' if the element is disabled.
|
static java.lang.String |
PROPERTY_EXPANDED
'expanded' if the element is expanded
|
static java.lang.String |
PROPERTY_ICON
'icon' the url of icon, if the element contains an icon.
|
static java.lang.String |
PROPERTY_ID
'id' used to find the element on the page
|
static java.lang.String |
PROPERTY_INDEX
'index' the index of the element within its container ComboBox/ListBox etc.
|
static java.lang.String |
PROPERTY_LABEL
'label' the text of the element shown on the page
|
static java.lang.String |
PROPERTY_SELECTABLE
'selectable' if the element is selectable.
|
static java.lang.String |
PROPERTY_SELECTED
'selected' if the element is selected.
|
static java.lang.String |
PROPERTY_TEXTCONTENT
'textContent' property returns the textual content of the specified DOM node, and all its descendants.
|
static java.lang.String |
PROPERTY_VALUE
'value' the value/key of the element, be transfered during submit
|
static java.lang.String |
PROPERTY_VISIBLE
'visible' if the element is visible.
|
protected boolean |
selected |
protected boolean |
visible |
cssClass, id, map, object, possibleRecognitionStrings, searchContext, tagName, webelement
Modifier | Constructor and Description |
---|---|
protected |
Element() |
|
Element(java.lang.Object object) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
_getLabel()
It is used to retrieve the text value shown on the web component from the embedded object.
|
java.lang.String |
contentValue() |
boolean |
equals(java.lang.Object node) |
protected org.openqa.selenium.WebElement |
getClickableWebElement()
This method tries to return a precise WebElement to click at.
|
java.lang.String |
getIconURL() |
java.lang.String |
getLabel() |
boolean |
isDisabled() |
boolean |
isSelected() |
boolean |
isVisible() |
static java.lang.String |
parseWebElementText(org.openqa.selenium.WebElement aWebElement) |
void |
setSelected(boolean selected) |
java.lang.String |
toString() |
void |
updateFields()
set/update the class's fields through the underlying WebElement or AbstractMap.
|
getAttribute, getCssClass, getEmbeddedObject, getId, getMap, getPossibleRecognitionStrings, getSearchContext, getTagName, getWebElement, initialize, refresh, setCssClass, setId, setPossibleRecognitionStrings, setSearchContext, setTagName, setWebElement
public static final java.lang.String PROPERTY_ID
public static final java.lang.String PROPERTY_LABEL
public static final java.lang.String PROPERTY_VALUE
public static final java.lang.String PROPERTY_INDEX
public static final java.lang.String PROPERTY_SELECTED
public static final java.lang.String PROPERTY_DISABLED
public static final java.lang.String PROPERTY_EXPANDED
public static final java.lang.String PROPERTY_SELECTABLE
public static final java.lang.String PROPERTY_ICON
public static final java.lang.String PROPERTY_TEXTCONTENT
public static final java.lang.String PROPERTY_CLASS
public static final java.lang.String PROPERTY_VISIBLE
protected org.openqa.selenium.WebElement clickableWebElement
protected java.lang.String label
label
is text that is shown on the component.protected java.lang.String iconURL
protected boolean disabled
protected boolean selected
protected boolean visible
public void updateFields()
updateFields
in class DefaultRefreshable
DefaultRefreshable.refresh(boolean)
protected java.lang.String _getLabel()
public static java.lang.String parseWebElementText(org.openqa.selenium.WebElement aWebElement)
protected org.openqa.selenium.WebElement getClickableWebElement()
HierarchicalElement.getClickableWebElement()
for a detail implementation.DefaultRefreshable.getWebElement()
instead.webelement
- Element, the element to get WebElementHierarchicalElement.getClickableWebElement()
public java.lang.String getIconURL()
public java.lang.String getLabel()
public boolean isDisabled()
public void setSelected(boolean selected)
public boolean isSelected()
public boolean isVisible()
public java.lang.String contentValue()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object node)
equals
in class java.lang.Object
Copyright © SAS Institute. All Rights Reserved.