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(String name,
Filter... filters)
find elements into the childs with the corresponding filters
|
FluentWebElement |
find(String name,
Integer number,
Filter... filters)
find elements into the childs with the corresponding filters at the given 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 text of the element
|
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 - public String getName()
public String getAttribute(String attribute)
attribute - public String getId()
public String getText()
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 - filters - public FluentWebElement find(String name, Integer number, Filter... filters)
find in interface SearchActions<FluentWebElement>name - filters - public FluentWebElement findFirst(String name, Filter... filters)
findFirst in interface SearchActions<FluentWebElement>name - filters - public String html()
public FillConstructor fill()
Copyright © 2014 AConsulting. All Rights Reserved.