|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fluentlenium.core.domain.FluentWebElement
public class FluentWebElement
WebElementCustom include a Selenium WebElement. It provides a lot of shortcuts to make selenium more fluent
| Constructor Summary | |
|---|---|
FluentWebElement(org.openqa.selenium.WebElement webElement)
|
|
| Method Summary | |
|---|---|
FluentWebElement |
clear()
Clear the element |
FluentWebElement |
click()
Click on the element |
FluentWebElement |
doubleClick()
Double Click on the element |
FluentList |
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 positiokn |
FluentWebElement |
findFirst(String name,
Filter... filters)
find elements into the childs 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, otherway return false |
boolean |
isEnabled()
return true if the element is enabled, otherway return false |
boolean |
isSelected()
return true if the element is selected, otherway false |
FluentWebElement |
submit()
Submit the element |
FluentWebElement |
text(String... text)
Set the text elelent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FluentWebElement(org.openqa.selenium.WebElement webElement)
| Method Detail |
|---|
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 find(String name,
Filter... filters)
find in interface SearchActionsname - filters -
public FluentWebElement find(String name,
Integer number,
Filter... filters)
find in interface SearchActionsname - filters -
public FluentWebElement findFirst(String name,
Filter... filters)
findFirst in interface SearchActionsname - filters -
public String html()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||