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
 tearDown ()
 
 executeSql ($type, $sql, $parameters=[])
 

Static Protected Member Functions

static getAppUrl ()
 
static getSeleniumUrl ()
 

Protected Attributes

 $driver = null
 

Member Function Documentation

◆ getAppUrl()

static getAppUrl ( )
staticprotected

Definition at line 53 of file SeleniumTestCase.php.

◆ getSeleniumUrl()

static getSeleniumUrl ( )
staticprotected

Definition at line 60 of file SeleniumTestCase.php.

◆ takeScreenShot()

takeScreenShot (   $filename)
protected

Definition at line 67 of file SeleniumTestCase.php.

◆ setUp()

setUp ( )

Reimplemented from DatabaseTestCase.

Definition at line 72 of file SeleniumTestCase.php.

◆ setDisplay()

setDisplay (   $size)
protected

Definition at line 78 of file SeleniumTestCase.php.

◆ setWindowSize()

setWindowSize (   $width,
  $height 
)
protected

Definition at line 84 of file SeleniumTestCase.php.

◆ wait()

wait (   $seconds)
protected

Wait.

Parameters
$ms

Definition at line 92 of file SeleniumTestCase.php.

◆ byXpath()

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()

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

$driver = null
protected

Definition at line 51 of file SeleniumTestCase.php.