BrowseTheWebWithProtractor
Hierarchy
- BrowseTheWeb<protractor.ElementFinder>
- BrowseTheWebWithProtractor
Index
Methods
Constructors
Methods
staticusing
Ability to interact with web front-ends using provided protractor browser instance.
Parameters
browser: ProtractorBrowser
Learn more
Returns BrowseTheWebWithProtractor
param
Returns Protractor configuration parameter at
path
.Configuring a custom parameter
// protractor.conf.js
exports.config = {
params: {
login: {
username: 'jane@example.org'
password: process.env.PASSWORD
}
}
// ...
}Retrieving config param by name
BrowseTheWebWithProtractor.as(actor).param('login')
// returns object with username and passwordRetrieving config param by path
BrowseTheWeb.as(actor).param('login.username')
// returns string 'jane@example.org'
@param path
Either a name or a dot-delimited path to the param.
@throws [ConfigurationError](/api/core/class/ConfigurationError)
Throws a `ConfigurationError` if the parameter is `undefined`Type parameters
- T = any
Parameters
path: string
Returns T
currentPage
Returns a Page representing the currently active browser tab.
Returns Promise<Page<ElementFinder>>
allPages
Returns an array of pages representing all the browser tabs available in the current BrowsingSession.
Returns Promise<Page<ElementFinder>[]>
browserCapabilities
Returns basic meta-data about the browser associated with this ability.
Returns Promise<BrowserCapabilities>
Constructors
constructor
Parameters
browser: ProtractorBrowser
An instance of a protractor browser
Returns BrowseTheWebWithProtractor
This implementation of the ability to BrowseTheWeb enables the Actor to interact with web front-ends using Protractor.
Using Protractor to
BrowseTheWeb
Learn more