Steps for page.
- Source:
Methods
-
<protected> _pages()
-
Helper to initialize pages storage.
- Source:
-
<async> getCurrentPage()
-
Step to get current page.
- Source:
Throws:
-
- If no one of registered pages corresponds to current browser URL.
- Type
- Error
Returns:
- Page which corresponds to current browser URL.
- Type
- Promise.<Page>
-
<async> getElement(name [, opts])
-
Step to get UI element.
Parameters:
Name Type Argument Description name
string UI element name.
opts
object <optional>
Step options.
Properties
Name Type Argument Default Description check
boolean <optional>
true Flag to check step result.
- Source:
Throws:
-
- If element wasn't found.
- Type
- AssertionError
Returns:
- UI element.
- Type
- Promise.<object>
-
<async> openPage(pageName)
-
Step to open page.
Parameters:
Name Type Description pageName
string Name of page to open.
- Source:
Returns:
- Type
- Promise
-
registerPages(pages)
-
Helper to register pages.
Parameters:
Name Type Argument Description pages
Page <repeatable>
Sequence of pages.
- Source:
-
removePages(pageNames)
-
Helper to remove pages.
Parameters:
Name Type Argument Description pageNames
string <repeatable>
Sequence of page names.
- Source: