PHP Class Sylius\Behat\Page\Page

Author: Kamil Kokot ([email protected])
Inheritance: implements Sylius\Behat\Page\PageInterface
Afficher le fichier Open project: sylius/sylius Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Behat\Mink\Session $session, array $parameters = [] )
isOpen ( array $urlParameters = [] )
open ( array $urlParameters = [] )
tryToOpen ( array $urlParameters = [] )
verify ( array $urlParameters = [] )

Méthodes protégées

Méthode Description
getDefinedElements ( ) : array Defines elements by returning an array with items being: - :elementName => :cssLocator - :elementName => [:selectorType => :locator]
getDocument ( ) : Behat\Mink\Element\DocumentElement
getDriver ( ) : Behat\Mink\Driver\DriverInterface
getElement ( string $name, array $parameters = [] ) : Behat\Mink\Element\NodeElement
getParameter ( string $name ) : Behat\Mink\Element\NodeElement
getSession ( ) : Behat\Mink\Session
getUrl ( array $urlParameters = [] ) : string
hasElement ( string $name, array $parameters = [] ) : boolean
verifyStatusCode ( )
verifyUrl ( array $urlParameters = [] ) Overload to verify if the current url matches the expected one. Throw an exception otherwise.

Private Methods

Méthode Description
createElement ( string $name, array $parameters = [] ) : Behat\Mink\Element\NodeElement
getSelectorAsXpath ( string | array $selector, Behat\Mink\Selector\SelectorsHandler $selectorsHandler ) : string
resolveParameters ( string $name, array $parameters, array $definedElements ) : string

Method Details

__construct() public méthode

public __construct ( Behat\Mink\Session $session, array $parameters = [] )
$session Behat\Mink\Session
$parameters array

getDefinedElements() protected méthode

Defines elements by returning an array with items being: - :elementName => :cssLocator - :elementName => [:selectorType => :locator]
protected getDefinedElements ( ) : array
Résultat array

getDocument() protected méthode

protected getDocument ( ) : Behat\Mink\Element\DocumentElement
Résultat Behat\Mink\Element\DocumentElement

getDriver() protected méthode

protected getDriver ( ) : Behat\Mink\Driver\DriverInterface
Résultat Behat\Mink\Driver\DriverInterface

getElement() protected méthode

protected getElement ( string $name, array $parameters = [] ) : Behat\Mink\Element\NodeElement
$name string
$parameters array
Résultat Behat\Mink\Element\NodeElement

getParameter() protected méthode

protected getParameter ( string $name ) : Behat\Mink\Element\NodeElement
$name string
Résultat Behat\Mink\Element\NodeElement

getSession() protected méthode

protected getSession ( ) : Behat\Mink\Session
Résultat Behat\Mink\Session

getUrl() abstract protected méthode

abstract protected getUrl ( array $urlParameters = [] ) : string
$urlParameters array
Résultat string

hasElement() protected méthode

protected hasElement ( string $name, array $parameters = [] ) : boolean
$name string
$parameters array
Résultat boolean

isOpen() public méthode

public isOpen ( array $urlParameters = [] )
$urlParameters array

open() public méthode

public open ( array $urlParameters = [] )
$urlParameters array

tryToOpen() public méthode

public tryToOpen ( array $urlParameters = [] )
$urlParameters array

verify() public méthode

public verify ( array $urlParameters = [] )
$urlParameters array

verifyStatusCode() protected méthode

protected verifyStatusCode ( )

verifyUrl() protected méthode

Overload to verify if the current url matches the expected one. Throw an exception otherwise.
protected verifyUrl ( array $urlParameters = [] )
$urlParameters array