webdriver 5.16.15 → 5.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/build/constants.js +4 -0
- package/build/request.js +2 -1
- package/package.json +3 -3
- package/webdriver.d.ts +1 -0
package/README.md
CHANGED
|
@@ -95,6 +95,12 @@ Shorten `url` command calls by setting a base url.
|
|
|
95
95
|
Type: `String`<br>
|
|
96
96
|
Default: *null*
|
|
97
97
|
|
|
98
|
+
### connectionRetryTimeout
|
|
99
|
+
Timeout for any WebDriver request to a driver or grid.
|
|
100
|
+
|
|
101
|
+
Type: `Number`<br>
|
|
102
|
+
Default: *90000*
|
|
103
|
+
|
|
98
104
|
### connectionRetryCount
|
|
99
105
|
Count of request retries to the Selenium server.
|
|
100
106
|
|
package/build/constants.js
CHANGED
package/build/request.js
CHANGED
|
@@ -71,7 +71,8 @@ class WebDriverRequest extends _events.default {
|
|
|
71
71
|
const requestOptions = {
|
|
72
72
|
agent: options.agent || agents[options.protocol],
|
|
73
73
|
headers: _objectSpread({}, DEFAULT_HEADERS, {}, typeof options.headers === 'object' ? options.headers : {}),
|
|
74
|
-
qs: typeof options.queryParams === 'object' ? options.queryParams : {}
|
|
74
|
+
qs: typeof options.queryParams === 'object' ? options.queryParams : {},
|
|
75
|
+
timeout: options.connectionRetryTimeout
|
|
75
76
|
};
|
|
76
77
|
|
|
77
78
|
if (this.body && (Object.keys(this.body).length || this.method === 'POST')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.18.4",
|
|
4
4
|
"description": "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
|
|
5
5
|
"author": "Christian Bromann <christian@saucelabs.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/webdriver",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@wdio/config": "5.
|
|
33
|
+
"@wdio/config": "5.18.4",
|
|
34
34
|
"@wdio/logger": "5.16.10",
|
|
35
35
|
"@wdio/protocols": "5.16.7",
|
|
36
36
|
"@wdio/utils": "5.16.15",
|
|
37
37
|
"lodash.merge": "^4.6.1",
|
|
38
38
|
"request": "^2.83.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "5ef407080fe47eb9337b183d07cc3c59cd9e7f9b"
|
|
41
41
|
}
|
package/webdriver.d.ts
CHANGED
|
@@ -361,6 +361,7 @@ declare namespace WebDriver {
|
|
|
361
361
|
capabilities?: DesiredCapabilities;
|
|
362
362
|
logLevel?: WebDriverLogTypes;
|
|
363
363
|
logOutput?: string | NodeJS.WritableStream
|
|
364
|
+
connectionRetryTimeout?: number;
|
|
364
365
|
connectionRetryCount?: number;
|
|
365
366
|
user?: string;
|
|
366
367
|
key?: string;
|