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

+ Inheritance diagram for SeleniumTestCase:

Public Member Functions

 setUp ()
 
- Public Member Functions inherited from DatabaseTestCase
 getConnection ()
 
 run (\PHPUnit_Framework_TestResult $result=null)
 

Protected Member Functions

 takeScreenShot ($filename)
 
 setDisplay ($size)
 
 setWindowSize ($width, $height)
 
 wait ($seconds)
 
 byXpath ($xpath)
 
 login ($user, $password)
 
- Protected Member Functions inherited from DatabaseTestCase
 setUp ()
 
 tearDown ()
 
 executeSql ($type, $sql, $parameters=[])
 

Static Protected Member Functions

static getAppUrl ()
 
static getSeleniumUrl ()
 

Protected Attributes

 $driver = null
 

Member Function Documentation

static getAppUrl ( )
staticprotected

Definition at line 53 of file SeleniumTestCase.php.

static getSeleniumUrl ( )
staticprotected

Definition at line 60 of file SeleniumTestCase.php.

takeScreenShot (   $filename)
protected

Definition at line 67 of file SeleniumTestCase.php.

setUp ( )

Definition at line 72 of file SeleniumTestCase.php.

setDisplay (   $size)
protected

Definition at line 78 of file SeleniumTestCase.php.

setWindowSize (   $width,
  $height 
)
protected

Definition at line 84 of file SeleniumTestCase.php.

wait (   $seconds)
protected

Wait.

Parameters
$ms

Definition at line 92 of file SeleniumTestCase.php.

byXpath (   $xpath)
protected

Get the DOM element matching the given xpath.

Parameters
$xpathThe xpath
Returns
element|false

Definition at line 101 of file SeleniumTestCase.php.

login (   $user,
  $password 
)
protected

Log into the application.

Parameters
$userThe username
$passwordThe password

Definition at line 110 of file SeleniumTestCase.php.

Member Data Documentation

$driver = null
protected

Definition at line 51 of file SeleniumTestCase.php.