Public Member Functions |
Protected Member Functions |
Static Protected Member Functions |
Protected Attributes |
List of all members
SeleniumTestCase Class Reference
Detailed Description
SeleniumTestCase is the base class for test cases that run with Selenium.
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()
|
staticprotected |
Definition at line 53 of file SeleniumTestCase.php.
◆ getSeleniumUrl()
|
staticprotected |
Definition at line 60 of file SeleniumTestCase.php.
◆ takeScreenShot()
|
protected |
Definition at line 67 of file SeleniumTestCase.php.
◆ setUp()
setUp | ( | ) |
Reimplemented from DatabaseTestCase.
Definition at line 72 of file SeleniumTestCase.php.
◆ setDisplay()
|
protected |
Definition at line 78 of file SeleniumTestCase.php.
◆ setWindowSize()
|
protected |
Definition at line 84 of file SeleniumTestCase.php.
◆ wait()
|
protected |
◆ byXpath()
|
protected |
Get the DOM element matching the given xpath.
- Parameters
-
$xpath The xpath
- Returns
- element|false
Definition at line 101 of file SeleniumTestCase.php.
◆ login()
|
protected |
Log into the application.
- Parameters
-
$user The username $password The password
Definition at line 110 of file SeleniumTestCase.php.
Member Data Documentation
◆ $driver
|
protected |
Definition at line 51 of file SeleniumTestCase.php.