|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fluentlenium.core.Fluent
public abstract class Fluent
Util Class which offers some shortcut to webdriver methods
| Constructor Summary | |
|---|---|
Fluent()
|
|
Fluent(org.openqa.selenium.WebDriver driver)
|
|
| Method Summary | ||
|---|---|---|
FluentList<FluentWebElement> |
$(String name,
Filter... filters)
Central methods to find elements on the page. |
|
FluentWebElement |
$(String name,
Integer number,
Filter... filters)
Central methods a find element on the page, the number indicat the index of the desired element on the list. |
|
FluentWait |
await()
wait for an asynchronous call |
|
Fluent |
clear(FluentList<FluentWebElement> fluentObject)
Clear all elements that are in the list Be careful - only the visible elements are cleared |
|
Fluent |
clear(FluentWebElement fluentObject)
Clear the given parameters elements that are in the list Be careful - only the visible elements are cleared |
|
Fluent |
clear(String cssSelector,
Filter... filters)
Submit all elements that are in cssSelector with its filters Be careful - only the visible elements are cleared |
|
Fluent |
click(FluentDefaultActions fluentObject)
click all elements that are in the list Be careful - only the visible elements are clicked |
|
Fluent |
click(String cssSelector,
Filter... filters)
click all elements that are in cssSelector with its filters Be careful - only the visible elements are clicked |
|
Fluent |
executeScript(String script)
|
|
FillConstructor |
fill(FluentDefaultActions list,
Filter... filters)
Construct a FillConstructor in order to allow easy fill Be careful - only the visible elements are filled |
|
FillConstructor |
fill(String cssSelector,
Filter... filters)
Construct a FillConstructor in order to allow easy fill Be careful - only the visible elements are filled |
|
FluentList<FluentWebElement> |
find(String name,
Filter... filters)
return the lists corresponding to the cssSelector with it filters |
|
FluentWebElement |
find(String name,
Integer number,
Filter... filters)
Return the elements at the numner position into the the lists corresponding to the cssSelector with it filters |
|
FluentWebElement |
findFirst(String name,
Filter... filters)
Return the first elements corresponding to the name and the filters |
|
String |
getBaseUrl()
Get the base URL to use when visiting relative URLs, if one is configured |
|
org.openqa.selenium.Cookie |
getCookie(String name)
return the corresponding cookie given a name |
|
Set<org.openqa.selenium.Cookie> |
getCookies()
return the cookies as a set |
|
org.openqa.selenium.WebDriver |
getDriver()
|
|
|
goTo(P page)
|
|
Fluent |
goTo(String url)
Open the url page |
|
protected Fluent |
initFluent(org.openqa.selenium.WebDriver driver)
|
|
String |
pageSource()
Return the source of the page |
|
Fluent |
submit(FluentDefaultActions fluentObject)
Submit all elements that are in the list Be careful - only the visible elements are submitted |
|
Fluent |
submit(String cssSelector,
Filter... filters)
Submit all elements that are in cssSelector with its filters Be careful - only the visible elements are submitted |
|
Fluent |
takeScreenShot()
Take a snapshot of the browser. |
|
Fluent |
takeScreenShot(String fileName)
Take a snapshot of the browser into a file given by the fileName param. |
|
List<String> |
text(String cssSelector,
Filter... filters)
get a list all elements that are in cssSelector with its filters Be careful - only the visible elements are submitted //TODO UTILITY ? Deprecated ? |
|
String |
title()
Return the title of the page |
|
String |
url()
Return the url of the page |
|
List<String> |
value(String cssSelector,
Filter... filters)
Value all elements that are in cssSelector with its filters Be careful - only the visible elements are returned //TODO UTILITY ? Deprecated ? |
|
Fluent |
withDefaultPageWait(long l,
TimeUnit timeUnit)
Define an implicit time to wait for a page to be loaded |
|
Fluent |
withDefaultSearchWait(long l,
TimeUnit timeUnit)
Define an implicit time to wait when searching an element |
|
Fluent |
withDefaultUrl(String baseUrl)
Defined the default url that will be used in the test and in the relative pages |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Fluent(org.openqa.selenium.WebDriver driver)
public Fluent()
| Method Detail |
|---|
public Fluent withDefaultUrl(String baseUrl)
baseUrl -
public Fluent withDefaultPageWait(long l,
TimeUnit timeUnit)
l - timeUnit -
public Fluent withDefaultSearchWait(long l,
TimeUnit timeUnit)
l - timeUnit -
public Fluent takeScreenShot()
public Fluent takeScreenShot(String fileName)
fileName - protected final Fluent initFluent(org.openqa.selenium.WebDriver driver)
public org.openqa.selenium.WebDriver getDriver()
public String getBaseUrl()
public FluentWait await()
public String title()
public Set<org.openqa.selenium.Cookie> getCookies()
public org.openqa.selenium.Cookie getCookie(String name)
name -
public String url()
public String pageSource()
public <P extends FluentPage> P goTo(P page)
public Fluent goTo(String url)
url - public Fluent executeScript(String script)
public FluentList<FluentWebElement> $(String name,
Filter... filters)
name - filters -
public FluentWebElement $(String name,
Integer number,
Filter... filters)
name - filters -
public FluentList<FluentWebElement> find(String name,
Filter... filters)
find in interface SearchActionsname - filters -
public FluentWebElement find(String name,
Integer number,
Filter... filters)
find in interface SearchActionsname - number - filters -
public FluentWebElement findFirst(String name,
Filter... filters)
findFirst in interface SearchActionsname - filters -
public FillConstructor fill(String cssSelector,
Filter... filters)
cssSelector -
public FillConstructor fill(FluentDefaultActions list,
Filter... filters)
list -
public Fluent click(String cssSelector,
Filter... filters)
cssSelector -
public Fluent clear(String cssSelector,
Filter... filters)
cssSelector -
public Fluent submit(String cssSelector,
Filter... filters)
cssSelector -
public List<String> text(String cssSelector,
Filter... filters)
cssSelector -
public List<String> value(String cssSelector,
Filter... filters)
cssSelector - public Fluent click(FluentDefaultActions fluentObject)
fluentObject - public Fluent clear(FluentList<FluentWebElement> fluentObject)
fluentObject - public Fluent clear(FluentWebElement fluentObject)
fluentObject - public Fluent submit(FluentDefaultActions fluentObject)
fluentObject -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||