org.fluentlenium.core
Class FluentPage

java.lang.Object
  extended by org.fluentlenium.core.Fluent
      extended by org.fluentlenium.core.FluentPage
All Implemented Interfaces:
SearchActions

public abstract class FluentPage
extends Fluent

Use the Page Object Pattern to have more resilient tests.


Constructor Summary
FluentPage()
           
FluentPage(org.openqa.selenium.WebDriver driver)
           
 
Method Summary
 String getUrl()
          Url of the Page
 void go()
          Go to the url defined in the page
 void isAt()
          Should check if the navigator is on correct page.
 
Methods inherited from class org.fluentlenium.core.Fluent
$, $, await, clear, clear, clear, click, click, executeScript, fill, fill, find, find, findFirst, getBaseUrl, getCookie, getCookies, getDriver, goTo, goTo, initFluent, pageSource, submit, submit, takeScreenShot, takeScreenShot, text, title, url, value, withDefaultPageWait, withDefaultSearchWait, withDefaultUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FluentPage

public FluentPage()

FluentPage

public FluentPage(org.openqa.selenium.WebDriver driver)
Method Detail

getUrl

public String getUrl()
Url of the Page

Returns:

isAt

public void isAt()
Should check if the navigator is on correct page.

For example : assertThat(title()).isEqualTo("Page 1"); assertThat("#reallyImportantField").hasSize(1);


go

public final void go()
Go to the url defined in the page



Copyright © 2012 AConsulting. All Rights Reserved.