externalBrowseTheWebWithProtractor
Hierarchy
- BrowseTheWeb<protractor.ElementFinder>
- BrowseTheWebWithProtractor
Index
Constructors
Methods
Constructors
externalconstructor
Parameters
externalbrowser: ProtractorBrowser
An instance of a protractor browser
Returns BrowseTheWebWithProtractor
Methods
staticexternalusing
Ability to interact with web front-ends using provided protractor browser instance.
Parameters
externalbrowser: ProtractorBrowser
Learn more
Returns BrowseTheWebWithProtractor
externalparam
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
externalpath: string
Returns T
externalcurrentPage
externalallPages
Returns an array of pages representing all the browser tabs available in the current
BrowsingSession
.Returns Promise<Page<ElementFinder>[]>
externalbrowserCapabilities
Returns basic meta-data about the browser associated with this ability.
Returns Promise<BrowserCapabilities>
This implementation of the ability to
BrowseTheWeb
enables theActor
to interact with web front-ends using Protractor.Using Protractor to
BrowseTheWeb
Learn more
BrowseTheWeb
Ability
Actor