leadfoot/Server
Inheritance
- leadfoot/Server
- Object
new (require("leadfoot/Server"))(url: Object|string, optionsopt: Object)
The Server class represents a remote HTTP server implementing the WebDriver wire protocol that can be used to generate new remote control sessions.
Parameters
Name | Type | Attributes | Description |
---|---|---|---|
url |
Object|string |
The fully qualified URL to the JsonWireProtocol endpoint on the server. The default endpoint for a JsonWireProtocol HTTP server is http://localhost:4444/wd/hub. You may also pass a parsed URL object which will be converted to a string. |
|
options |
Object | optional |
Additional request options to be used for requests to the server. |
All Properties
Property | Defined by |
---|---|
fixSessionCapabilities: boolean
Whether or not to perform capabilities testing and correction when creating a new Server. |
leadfoot/Server |
An alternative session constructor. |
leadfoot/Server |
All Methods
Method | Defined by |
---|---|
createSession(desiredCapabilities: Capabilities, requiredCapabilitiesopt: Capabilities): Promise.<leadfoot/Session>
Creates a new remote control session on the remote server. |
leadfoot/Server |
Terminates a session on the server. |
leadfoot/Server |
Gets information on the capabilities of a given session from the server. |
leadfoot/Server |
Gets a list of all currently active remote control sessions on this server. |
leadfoot/Server |
Gets the status of the remote server. |
leadfoot/Server |
(inner)
Creates a function that performs an HTTP request to a JsonWireProtocol endpoint. |
leadfoot/Server |
(inner)
Returns the actual response value from the remote environment. |
leadfoot/Server |
Properties
fixSessionCapabilities: boolean
sessionConstructor: leadfoot/Session
An alternative session constructor. Defaults to the standard leadfoot/Session constructor if one is not provided.
Defaults to
Session
Methods
createSession(desiredCapabilities: Capabilities, requiredCapabilitiesopt: Capabilities): Promise.<leadfoot/Session>
Creates a new remote control session on the remote server.
Parameters
Name | Type | Attributes | Description |
---|---|---|---|
desiredCapabilities |
Capabilities |
A hash map of desired capabilities of the remote environment. The server may return an environment that does not match all the desired capabilities if one is not available. |
|
requiredCapabilities |
Capabilities | optional |
A hash map of required capabilities of the remote environment. The server will not return an environment that does not match all the required capabilities if one is not available. |