Detailed Description

SeleniumTestCase is the base class for test cases that run with Selenium.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 20 of file SeleniumTestCase.php.

+ Inheritance diagram for SeleniumTestCase:

Public Member Functions

 tearDown ()
 
 setUpPage ()
 

Protected Member Functions

 setUp ()
 
 setDisplay ($size)
 
 waitForXpath ($xpath, $wait=30)
 
 login ($user, $password)
 

Static Protected Member Functions

static getAppUrl ()
 

Member Function Documentation

static getAppUrl ( )
staticprotected

Definition at line 40 of file SeleniumTestCase.php.

setUp ( )
protected

Definition at line 44 of file SeleniumTestCase.php.

tearDown ( )

Definition at line 64 of file SeleniumTestCase.php.

setUpPage ( )

Definition at line 72 of file SeleniumTestCase.php.

setDisplay (   $size)
protected

Definition at line 85 of file SeleniumTestCase.php.

waitForXpath (   $xpath,
  $wait = 30 
)
protected

Wait for a DOM element matching the given xpath.

Parameters
$xpathThe xpath
$waitmaximum (in seconds)
Returns
element|false false on time-out

Definition at line 98 of file SeleniumTestCase.php.

login (   $user,
  $password 
)
protected

Log into the application.

Parameters
$userThe username
$passwordThe password

Definition at line 116 of file SeleniumTestCase.php.