public class FluentWebElement extends Object implements FluentDefaultActions<FluentWebElement>, SearchActions<FluentWebElement>
| Constructor and Description |
|---|
FluentWebElement(org.openqa.selenium.WebElement webElement) |
| Modifier and Type | Method and Description |
|---|---|
FluentWebElement |
clear()
Clear the element
|
FluentWebElement |
click()
Click on the element
|
FluentWebElement |
doubleClick()
Double Click on the element
|
FillConstructor |
fill()
Construct a FillConstructor in order to allow easy fill
Be careful - only the visible elements are filled
|
FluentList<FluentWebElement> |
find(Filter... filters)
find elements in the children with the corresponding filters
|
FluentWebElement |
find(Integer number,
Filter... filters)
find element in the children with the corresponding filters at the given position
|
FluentList<FluentWebElement> |
find(String name,
Filter... filters)
find elements into the children with the corresponding filters
|
FluentWebElement |
find(String name,
Integer number,
Filter... filters)
find elements into the children with the corresponding filters at the given position
|
FluentWebElement |
findFirst(Filter... filters)
find element in the children with the corresponding filters at the first position
|
FluentWebElement |
findFirst(String name,
Filter... filters)
find elements into the children with the corresponding filters at the first position
|
String |
getAttribute(String attribute)
return any value of custom attribute (generated=true will return "true" if getAttribute("generated") is called.
|
org.openqa.selenium.WebElement |
getElement()
return the webElement
|
String |
getId()
return the id of the elements
|
String |
getName()
return the name of the element
|
org.openqa.selenium.Dimension |
getSize()
return the size of the elements
|
String |
getTagName()
return the tag name
|
String |
getText()
return the visible text of the element
|
String |
getTextContent()
return the text content of the element (even invisible through textContent attribute)
|
String |
getValue()
return the value of the elements
|
String |
html()
return the innerHTML content of the web element
does not work with HTMLUnit
|
boolean |
isDisplayed()
return true if the element is displayed, other way return false
|
boolean |
isEnabled()
return true if the element is enabled, other way return false
|
boolean |
isSelected()
return true if the element is selected, other way false
|
FluentWebElement |
submit()
Submit the element
|
FluentWebElement |
text(String... text)
Set the text element
|
public FluentWebElement(org.openqa.selenium.WebElement webElement)
public FluentWebElement click()
click in interface FluentDefaultActions<FluentWebElement>public FluentWebElement doubleClick()
public FluentWebElement clear()
public FluentWebElement submit()
submit in interface FluentDefaultActions<FluentWebElement>public FluentWebElement text(String... text)
text in interface FluentDefaultActions<FluentWebElement>text - value to setpublic String getName()
public String getAttribute(String attribute)
attribute - custom attribute namepublic String getId()
public String getText()
public String getTextContent()
public String getValue()
public boolean isDisplayed()
public boolean isEnabled()
public boolean isSelected()
public String getTagName()
public org.openqa.selenium.WebElement getElement()
public org.openqa.selenium.Dimension getSize()
public FluentList<FluentWebElement> find(String name, Filter... filters)
find in interface SearchActions<FluentWebElement>name - name of elementfilters - filters setpublic FluentList<FluentWebElement> find(Filter... filters)
find in interface SearchActions<FluentWebElement>filters - filters setpublic FluentWebElement find(String name, Integer number, Filter... filters)
find in interface SearchActions<FluentWebElement>name - name of elementfilters - filters setpublic FluentWebElement find(Integer number, Filter... filters)
find in interface SearchActions<FluentWebElement>number - index of elementfilters - filters setpublic FluentWebElement findFirst(String name, Filter... filters)
findFirst in interface SearchActions<FluentWebElement>name - name of elementfilters - filters setpublic FluentWebElement findFirst(Filter... filters)
findFirst in interface SearchActions<FluentWebElement>filters - filters setpublic String html()
public FillConstructor fill()
Copyright © 2015 AConsulting. All Rights Reserved.