class TypifiedPage extends Page (View source)

The base class to be used for making classes representing pages, that can contain typified elements (i.e web page controls such as text inputs, buttons or more complex elements).

Properties

protected IPageFactory $pageFactory Page factory, used to create a Page. from Page
protected IBuilder $urlBuilder The builder which generates the url. from Page

Methods

__construct(IPageFactory $page_factory)

Initialize the page.

from Page
string
getAbsoluteUrl(array $params = array())

Returns full url to the page with a possibility to alter it real time.

from Page
open(array $params = array())

Opens this page in browser.

from Page
setUrlBuilder(IBuilder $url_builder)

Sets the url builder.

from Page
boolean
opened()

Checks if the page is currently opened in browser.

from Page
Expectation
shouldReceive(string $name)

No description

from Page

Details

__construct(IPageFactory $page_factory)

Initialize the page.

Parameters

IPageFactory $page_factory Page factory.

string getAbsoluteUrl(array $params = array())

Returns full url to the page with a possibility to alter it real time.

Parameters

array $params Page parameters.

Return Value

string

Exceptions

PageException When url builder is missing.

Page open(array $params = array())

Opens this page in browser.

Parameters

array $params Page parameters.

Return Value

Page

Exceptions

PageException When page url not specified.

Page setUrlBuilder(IBuilder $url_builder)

Sets the url builder.

Parameters

IBuilder $url_builder Url builder.

Return Value

Page

boolean opened()

Checks if the page is currently opened in browser.

Return Value

boolean

Expectation shouldReceive(string $name)

Parameters

string $name

Return Value

Expectation