PHP Class OpenEyesPage

Inheritance: extends SensioLabs\Behat\PageObjectExtension\PageObject\Page
Afficher le fichier Open project: openeyes/openeyes

Méthodes publiques

Méthode 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

Méthode Description
getWaitTime ( $waitTime )

Method Details

__construct() public méthode

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 méthode

public acceptAlert ( )

checkOpenEyesTitle() public méthode

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

popupOk() public méthode

public popupOk ( $element_name )

saveEvent() public méthode

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

scrollWindowTo() public méthode

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

scrollWindowToElement() public méthode

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 méthode

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 méthode

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 méthode

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