PHP Класс OpenEyesPage

Наследование: extends SensioLabs\Behat\PageObjectExtension\PageObject\Page
Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
getWaitTime ( $waitTime )

Описание методов

__construct() публичный Метод

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

checkOpenEyesTitle() публичный Метод

ription checks that the title is equal to the expected value
public checkOpenEyesTitle ( string $expectedTitle ) : boolean
$expectedTitle string - the string value
Результат boolean

popupOk() публичный Метод

public popupOk ( $element_name )

saveEvent() публичный Метод

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

scrollWindowTo() публичный Метод

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

scrollWindowToElement() публичный Метод

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() публичный Метод

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() публичный Метод

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() публичный Метод

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