PHP Class OpenEyesPage

Inheritance: extends SensioLabs\Behat\PageObjectExtension\PageObject\Page
Mostrar archivo Open project: openeyes/openeyes

Public Methods

Method Description
__construct ( Behat\Mink\Session $session, SensioLabs\Behat\PageObjectExtension\Context\PageFactoryInterface $pageFactory, array $parameters = [] )
acceptAlert ( )
checkOpenEyesTitle ( string $expectedTitle ) : boolean ription checks that the title is equal to the expected value
clickLink ( string $locator ) Clicks link with specified locator.
popupOk ( $element_name )
saveEvent ( ) This should be the same behaviour for every OE page
scrollWindowTo ( string $xpath ) Scrolls the window to ensure the element is within the viewport.
scrollWindowToElement ( Behat\Mink\Element\NodeElement $element ) Scrolls the window to ensure the element is within the viewport.
scrollWindowToLink ( string $locator ) Scrolls the window to ensure the element is within the viewport.
waitForElementDisplayBlock ( string $selector, $waitTime = null ) ription Wait for element identified by a css selector to have a display css value of 'block'
waitForElementDisplayNone ( string $selector, $waitTime = null ) ription Wait for element identified by a css selector to have a display css value of 'none'
waitForTitle ( string $title, null | integer $waitTime = null ) ription waits for the title of the page included in the OpenEyes specific class to become equal to the expected value

Private Methods

Method Description
getWaitTime ( $waitTime )

Method Details

__construct() public method

public __construct ( Behat\Mink\Session $session, SensioLabs\Behat\PageObjectExtension\Context\PageFactoryInterface $pageFactory, array $parameters = [] )
$session Behat\Mink\Session
$pageFactory SensioLabs\Behat\PageObjectExtension\Context\PageFactoryInterface
$parameters array

acceptAlert() public method

public acceptAlert ( )

checkOpenEyesTitle() public method

ription checks that the title is equal to the expected value
public checkOpenEyesTitle ( string $expectedTitle ) : boolean
$expectedTitle string - the string value
return boolean

popupOk() public method

public popupOk ( $element_name )

saveEvent() public method

This should be the same behaviour for every OE page
public saveEvent ( )

scrollWindowTo() public method

Scrolls the window to ensure the element is within the viewport.
public scrollWindowTo ( string $xpath )
$xpath string The element xpath string.

scrollWindowToElement() public method

Scrolls the window to ensure the element is within the viewport.
public scrollWindowToElement ( Behat\Mink\Element\NodeElement $element )
$element Behat\Mink\Element\NodeElement The element to scroll to.

waitForElementDisplayBlock() public method

ription Wait for element identified by a css selector to have a display css value of 'block'
public waitForElementDisplayBlock ( string $selector, $waitTime = null )
$selector string - css selector for the element we need to check for its display property

waitForElementDisplayNone() public method

ription Wait for element identified by a css selector to have a display css value of 'none'
public waitForElementDisplayNone ( string $selector, $waitTime = null )
$selector string - css selector for the element we need to check for its display property

waitForTitle() public method

ription waits for the title of the page included in the OpenEyes specific class to become equal to the expected value
public waitForTitle ( string $title, null | integer $waitTime = null )
$title string - the string value
$waitTime null | integer - optional wait time override. Default is $this->defaultWait