Browser.InternetExplorer Class
This module is a browser plugin for DalekJS. It provides all a WebDriverServer & browser launcher for Internet Explorer.
The browser plugin can be installed with the following command:
$ npm install dalek-browser-ie --save-dev
You can use the browser plugin by adding a config option to the your Dalekfile
"browsers": ["IE"]
Or you can tell Dalek that it should test in this browser via the command line:
$ dalek mytest.js -b IE
The Webdriver Server tries to open Port 5555 by default, if this port is blocked, it tries to use a port between 5555 & 5564 You can specifiy a different port from within your Dalekfile like so:
"browsers": {
"ie": {
"port": 6555
}
}
It is also possible to specify a range of ports:
"browsers": {
"ie": {
"portRange": [6100, 6120]
}
}
Item Index
Methods
_checkUserDefinedPorts
-
browser
Process user defined ports
Parameters:
-
browser
ObjectBrowser configuration
_kill
-
PID
-
[force=false]
-
[callback]
Kill a specific process (win only)
Parameters:
-
PID
NumberProcess ID
-
[force=false]
Boolean optionalForce close the process.
-
[callback]
Function optionalCallback after process has been killed
_list
-
callback
-
[verbose=false]
Lists all running processes (win only)
Parameters:
-
callback
FunctionReceives the process object as the only callback argument
-
[verbose=false]
Boolean optionalVerbose output
getHost
()
String
Returns the driver host
Returns:
host WebDriver server hostname
getMaxPort
()
Integer
Resolves the maximum range for the driver port
Returns:
port Max WebDriver server port range
getPort
()
Integer
Resolves the driver port
Returns:
port WebDriver server port
kill
()
chainable
Kills the driver & browser processes
launch
()
Object
Launches the driver (the driver takes care of launching the browser)
Returns:
promise Browser promise
Properties
desiredCapabilities
Object
Default desired capabilities that should be transferred when the browser session gets requested
driverDefaults
Object
Driver defaults, what should the driver be able to access.
host
String
Default host of the IEDriverServer The host may be overridden with a user configured value
Default: localhost
longName
String
Verbose version of the browser name
Default: Internet Explorer
maxPort
Integer
Default maximum port of the IEDriverServer The port is the highest port in the range that can be allocated by the IEDriverServer
Default: 5654
openProcesses
Array
IE processes that are running on startup, and therefor shouldn`t be closed
Default: []
path
String
Path to the IEDriverServer.exe file
Default: /
port
Integer
Default port of the IEDriverServer The port may change, cause the port conflict resultion tool might pick another one, if the default one is blocked
Default: 5555
spawned
Null | Object
Child process instance of the IEDriverServer