play.test
Class TestBrowser

java.lang.Object
  extended by org.fluentlenium.core.Fluent
      extended by org.fluentlenium.core.FluentAdapter
          extended by play.test.TestBrowser
All Implemented Interfaces:
org.fluentlenium.core.search.SearchActions

public class TestBrowser
extends org.fluentlenium.core.FluentAdapter

A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).


Constructor Summary
TestBrowser(java.lang.Class<? extends org.openqa.selenium.WebDriver> webDriver)
          A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).
TestBrowser(org.openqa.selenium.WebDriver webDriver)
          A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).
 
Method Summary
 org.openqa.selenium.Cookie getCookie(java.lang.String name)
          Retrieves a cookie.
 java.util.Set<org.openqa.selenium.Cookie> getCookies()
          Retrieves all cookies.
 java.lang.String pageSource()
          The current page HTML source.
 java.lang.String title()
          The current page URL.
 java.lang.String url()
          /** The current page URL.
 
Methods inherited from class org.fluentlenium.core.FluentAdapter
assertAt, createPage, getDefaultDriver, getDefaultWait, initClass, initTest, quit
 
Methods inherited from class org.fluentlenium.core.Fluent
$, $, await, clear, clear, click, click, executeScript, fill, fill, find, find, findFirst, getDriver, goTo, goTo, setDriver, submit, submit, text, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestBrowser

public TestBrowser(java.lang.Class<? extends org.openqa.selenium.WebDriver> webDriver)
            throws java.lang.Exception
A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).

Parameters:
webDriver - The WebDriver instance to use.
Throws:
java.lang.Exception

TestBrowser

public TestBrowser(org.openqa.selenium.WebDriver webDriver)
A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).

Parameters:
webDriver - The WebDriver instance to use.
Method Detail

url

public java.lang.String url()
/** The current page URL.

Overrides:
url in class org.fluentlenium.core.Fluent

title

public java.lang.String title()
The current page URL.

Overrides:
title in class org.fluentlenium.core.Fluent

pageSource

public java.lang.String pageSource()
The current page HTML source.

Overrides:
pageSource in class org.fluentlenium.core.Fluent

getCookies

public java.util.Set<org.openqa.selenium.Cookie> getCookies()
Retrieves all cookies.

Overrides:
getCookies in class org.fluentlenium.core.Fluent

getCookie

public org.openqa.selenium.Cookie getCookie(java.lang.String name)
Retrieves a cookie.

Overrides:
getCookie in class org.fluentlenium.core.Fluent