webdriver
Advanced tools
Comparing version 5.0.0-beta.13 to 5.0.0-beta.14
@@ -49,11 +49,42 @@ "use strict"; | ||
_logger.default.setLevel('webdriver', params.logLevel); | ||
/** | ||
* the user could have passed in either w3c style or jsonwp style caps | ||
* and we want to pass both styles to the server, which means we need | ||
* to check what style the user sent in so we know how to construct the | ||
* object for the other style | ||
*/ | ||
const [w3cCaps, jsonwpCaps] = params.capabilities && params.capabilities.alwaysMatch | ||
/** | ||
* in case W3C compliant capabilities are provided | ||
*/ | ||
? [params.capabilities, params.capabilities.alwaysMatch] | ||
/** | ||
* otherwise assume they passed in jsonwp-style caps (flat object) | ||
*/ | ||
: [{ | ||
alwaysMatch: params.capabilities, | ||
firstMatch: [{}] | ||
}, params.capabilities]; | ||
const sessionRequest = new _request.default('POST', '/session', { | ||
capabilities: params.capabilities, | ||
capabilities: w3cCaps, | ||
// W3C compliant | ||
desiredCapabilities: params.capabilities // JSONWP compliant | ||
desiredCapabilities: jsonwpCaps // JSONWP compliant | ||
}); | ||
const response = await sessionRequest.makeRequest(params); | ||
params.requestedCapabilities = params.capabilities; | ||
/** | ||
* save original set of capabilities to allow to request the same session again | ||
* (e.g. for reloadSession command in WebdriverIO) | ||
*/ | ||
params.requestedCapabilities = { | ||
w3cCaps, | ||
jsonwpCaps | ||
/** | ||
* save actual receveived session details | ||
*/ | ||
}; | ||
params.capabilities = response.value.capabilities || response.value; | ||
@@ -75,2 +106,4 @@ params.isW3C = (0, _utils.isW3CSession)(response.value); | ||
_logger.default.setLevel('webdriver', options.logLevel); | ||
options.capabilities = options.capabilities || {}; | ||
@@ -118,2 +151,2 @@ options.isW3C = options.isW3C || true; | ||
exports.default = WebDriver; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJXZWJEcml2ZXIiLCJuZXdTZXNzaW9uIiwib3B0aW9ucyIsIm1vZGlmaWVy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3QgZm9yIHRoZSBvdGhlciBzdHlsZVxuICAgICAgICAgKi9cbiAgICAgICAgY29uc3QgW3czY0NhcHMsIGpzb253cENhcHNdID0gcGFyYW1zLmNhcGFiaWxpdGllcyAmJiBwYXJhbXMuY2FwYWJpbGl0aWVzLmFsd2F5c01hdGNoXG4gICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAqIGluIGNhc2UgVzNDIGNvbXBsaWFudCBjYXBhYmlsaXRpZXMgYXJlIHByb3ZpZGVkXG4gICAgICAgICAgICAgKi9cbiAgICAgICAgICAgID8gW3BhcmFtcy5jYXBhYmlsaXRpZXMsIHBhcmFtcy5jYXBhYmlsaXRpZXMuYWx3YXlzTWF0Y2hdXG4gICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAqIG90aGVyd2lzZSBhc3N1bWUgdGhleSBwYXNzZWQgaW4ganNvbndwLXN0eWxlIGNhcHMgKGZsYXQgb2JqZWN0KVxuICAgICAgICAgICAgICovXG4gICAgICAgICAgICA6IFt7IGFsd2F5c01hdGNoOiBwYXJhbXMuY2FwYWJpbGl0aWVzLCBmaXJzdE1hdGNoOiBbe31dIH0sIHBhcmFtcy5jYXBhYmlsaXRpZXNdXG5cbiAgICAgICAgY29uc3Qgc2Vzc2lvblJlcXVlc3QgPSBuZXcgV2ViRHJpdmVyUmVxdWVzdChcbiAgICAgICAgICAgICdQT1NUJyxcbiAgICAgICAgICAgICcvc2Vzc2lvbicsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgY2FwYWJpbGl0aWVzOiB3M2NDYXBzLCAvLyBXM0MgY29tcGxpYW50XG4gICAgICAgICAgICAgICAgZGVzaXJlZENhcGFiaWxpdGllczoganNvbndwQ2FwcyAvLyBKU09OV1AgY29tcGxpYW50XG4gICAgICAgICAgICB9XG4gICAgICAgIClcblxuICAgICAgICBjb25zdCByZXNwb25zZSA9IGF3YWl0IHNlc3Npb25SZXF1ZXN0Lm1ha2VSZXF1ZXN0KHBhcmFtcylcbiAgICA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gSnNvbldQcm90b2NvbFxuICAgIH1cbiAgICBzdGF0aWMgZ2V0IE1Kc29uV1Byb3RvY29sICgpIHtcbiAgICAgICAgcmV0dXJuIE1Kc29uV1Byb3RvY29sXG4gICAgfVxuICAgIHN0YXRpYyBnZXQgQXBwaXVtUHJvdG9jb2wgKCkge1xuICAgICAgICByZXR1cm4gQXBwaXVtUHJvdG9jb2xcbiAgICB9XG59XG5cbi8qKlxuICogSGVscGVyIG1ldGhvZHMgY29uc3VtZWQgYnkgd2ViZHJpdmVyaW8gcGFja2FnZVxuICovXG5leHBvcnQge1xuICAgIHdlYmRyaXZlck1vbmFkLFxuICAgIGdldFByb3RvdHlwZVxufVxuIl19 |
{ | ||
"name": "webdriver", | ||
"version": "5.0.0-beta.13", | ||
"version": "5.0.0-beta.14", | ||
"description": "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol", | ||
@@ -31,8 +31,8 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
"dependencies": { | ||
"@wdio/config": "^5.0.0-beta.13", | ||
"@wdio/logger": "^5.0.0-beta.13", | ||
"@wdio/config": "^5.0.0-beta.14", | ||
"@wdio/logger": "^5.0.0-beta.14", | ||
"deepmerge": "^2.0.1", | ||
"request": "^2.83.0" | ||
}, | ||
"gitHead": "a86c5e8a064b982cce1279682764e5d2ab02c50c" | ||
"gitHead": "8ddc33906f9f9129df13c2e45b04b191270ef1fa" | ||
} |
@@ -12,3 +12,3 @@ { | ||
"parameters": [{ | ||
"name": "context", | ||
"name": "name", | ||
"type": "string", | ||
@@ -15,0 +15,0 @@ "description": "a string representing an available context", |
@@ -16,3 +16,3 @@ { | ||
"name": "session", | ||
"description": "Object containing sessionId and capabilties of created WebDriver session." | ||
"description": "Object containing sessionId and capabilities of created WebDriver session." | ||
} | ||
@@ -109,3 +109,3 @@ } | ||
"command": "refresh", | ||
"description": "The Refresh command causes the browser to reload the page in in current top-level browsing context.", | ||
"description": "The Refresh command causes the browser to reload the page in current top-level browsing context.", | ||
"ref": "https://w3c.github.io/webdriver/webdriver-spec.html#dfn-refresh", | ||
@@ -252,3 +252,3 @@ "parameters": [] | ||
"command": "minimizeWindow", | ||
"description": "", | ||
"description": "The Minimize Window command invokes the window manager-specific \"minimize\" operation, if any, on the window containing the current top-level browsing context. This typically hides the window in the system tray.", | ||
"ref": "https://w3c.github.io/webdriver/webdriver-spec.html#dfn-minimize-window", | ||
@@ -585,4 +585,4 @@ "parameters": [], | ||
"parameters": [{ | ||
"name": "value", | ||
"type": "string[]", | ||
"name": "text", | ||
"type": "string", | ||
"description": "string to send as keystrokes to the element", | ||
@@ -589,0 +589,0 @@ "required": true |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
247994
3896
Updated@wdio/config@^5.0.0-beta.14
Updated@wdio/logger@^5.0.0-beta.14