Class: Page

Page


new Page(name, pageUrl, elements)

Page of browser.

Parameters:
Name Type Description
name string

Name of page.

pageUrl string

URL of page.

elements object

Element names and selectors dictionary.

Source:

Methods


<protected> _addElement(name, selector)

Adds element.

Parameters:
Name Type Description
name string

Element name.

selector string

Element selector.

Source:

addElements(elements)

Adds elements to page.

Parameters:
Name Type Description
elements object

Element names and selectors dictionary.

Source:

getDriver()

Gets webdriver.

Source:
Throws:
  • If webdriver isn't set yet.
Type
AssertionError
Returns:
  • Webdriver instance.
Type
object

removeElements(elementNames)

Removes elements from page.

Parameters:
Name Type Argument Description
elementNames string <repeatable>

Sequence of element names.

Source:

setDriver(webdriver)

Sets webdriver for page.

Parameters:
Name Type Description
webdriver object

Webdriver instance.

Source: