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 39 of file SeleniumTestCase.php.

setUp ( )
protected

Definition at line 43 of file SeleniumTestCase.php.

tearDown ( )

Definition at line 62 of file SeleniumTestCase.php.

setUpPage ( )

Definition at line 70 of file SeleniumTestCase.php.

setDisplay (   $size)
protected

Definition at line 83 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 96 of file SeleniumTestCase.php.

login (   $user,
  $password 
)
protected

Log into the application.

Parameters
$userThe username
$passwordThe password

Definition at line 114 of file SeleniumTestCase.php.