PHP 클래스 OpenEyesPage

상속: extends SensioLabs\Behat\PageObjectExtension\PageObject\Page
파일 보기 프로젝트 열기: openeyes/openeyes

공개 메소드들

메소드 설명
__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