Dalek.Remote Class
Mimics a real browser that runs in a remote dalek instance
Item Index
Methods
Methods
_afterRemoteBrowserLaunched
-
deferred -
response
Listens on the response of the initial browser launch call and collects the response data, fires the _handshakeFinished call after the response ended
Parameters:
-
deferredObjectPromise
-
responseObjectBrowser launch response object
_handshakeFinished
-
deferred -
data
Parses the response data of the initial browser handshake, sets the longName, desiredCapabilities & driverDefaults, emits the browser data (can be used by reporters & drivers)
Parameters:
-
deferredObjectPromise
-
dataArrayRemote browser data (longName, desiredCapabilities, driverDefaults)
_loadConfigs
-
configuration -
config
Sets the host & port of the remote instance, extracts the remote browser to call, generates the launch & kill objects for this session
Parameters:
-
configurationObjectBrowser session configuration
-
configObjectDalek configuration data
_replaceUrlPlaceholder
-
url
Replaces {{host}}, {{port}} & {{browser}} placeholders in the given url with data from this.host, this.port & this.browserAlias
Parameters:
-
urlStringUrl with placeholder
Returns:
Url with replaced placeholders
kill
()
Object
Kills the remote browser
Returns:
Promise
launch
-
configuration -
events -
config
Stores & validates the incoming browser config
Parameters:
-
configurationObjectBrowser configuration
-
eventsEventEmitter2EventEmitter (Reporter Emitter instance)
-
configDalek.Internal.ConfigDalek configuration class
Returns:
Browser promise
setBrowser
-
browser
Injects the browser name
Parameters:
-
browserStringBrowser to launch
Properties
browser
String
Internal config name of the browser to start remotly
Default: '
browserAlias
String
Remote browser alias to start a browser (browser.name or browser.actAs or user input browser alias)
Default: '
defaultKillUrl
String
Url (with placeholders) to kill browsers on the remote instance
Default: http://{{host}}:{{port}}/dalek/kill
defaultLaunchUrl
String
Url (with placeholders) to launch browsers on the remote instance
Default: http://{{host}}:{{port}}/dalek/launch/{{browser}}
driverDefaults
Object
Driver defaults
host
String
Remote host
Default: ''
killUrl
String
Url to kill a specific remote browser session
Default: ''
launchUrl
String
Url to start a specific remote browser session
Default: ''
path
String
Remote webdriver path
Default: ''
port
Integer
Remote port
Default: 9020
