webdriverio 4.12.0-beta.1 → 4.12.0
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/CHANGELOG.md +7 -0
- package/build/lib/utils/RequestHandler.js +1 -0
- package/build/package.json +1 -1
- package/docs/guide/getstarted/configuration.md +32 -0
- package/package-lock.json +13337 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v4.12.0 (2018-03-07)
|
|
4
|
+
* global changes:
|
|
5
|
+
* docs improvements
|
|
6
|
+
* allow to set `proxy` and `agent` request options
|
|
7
|
+
* wdio changes:
|
|
8
|
+
* support for files with `.es6` ending
|
|
9
|
+
|
|
3
10
|
## v4.11.0 (2018-02-27)
|
|
4
11
|
* global changes:
|
|
5
12
|
* docs improvements
|
package/build/package.json
CHANGED
|
@@ -91,6 +91,18 @@ Path to WebDriver server.
|
|
|
91
91
|
Type: `String`<br>
|
|
92
92
|
Default: */wd/hub*
|
|
93
93
|
|
|
94
|
+
### agent
|
|
95
|
+
http(s).Agent instance to use
|
|
96
|
+
|
|
97
|
+
Type: `Object`<br>
|
|
98
|
+
Default: `new http(s).Agent({ keepAlive: true })`
|
|
99
|
+
|
|
100
|
+
### proxy
|
|
101
|
+
An HTTP proxy to be used. Supports proxy Auth with Basic Auth, identical to support for the url parameter (by embedding the auth info in the uri)
|
|
102
|
+
|
|
103
|
+
Type: `String`<br>
|
|
104
|
+
Default: `undefined` (no proxy used)
|
|
105
|
+
|
|
94
106
|
### baseUrl
|
|
95
107
|
Shorten `url` command calls by setting a base url. If your `url` parameter starts with `/`, the base url gets prepended, not including the path portion of your baseUrl. If your `url` parameter starts without a scheme or `/` (like `some/path`), the base url gets prepended directly.
|
|
96
108
|
|
|
@@ -293,3 +305,23 @@ Similarly for mocha:
|
|
|
293
305
|
requires: ['./test/helpers/common.js']
|
|
294
306
|
},
|
|
295
307
|
```
|
|
308
|
+
|
|
309
|
+
## Run WebdriverIO behind corperate proxy
|
|
310
|
+
|
|
311
|
+
If your company has a corperate proxy (e.g. on `http://my.corp.proxy.com:9090`) for all outgoing requests you can set it using the `proxy` configuration option. Just set in your `wdio.conf.js` the following:
|
|
312
|
+
|
|
313
|
+
```js
|
|
314
|
+
exports.config = {
|
|
315
|
+
// ...
|
|
316
|
+
proxy: 'http://my.corp.proxy.com:9090',
|
|
317
|
+
// ...
|
|
318
|
+
}
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
If you use [Sauce Connect Proxy](https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy) start it via:
|
|
322
|
+
|
|
323
|
+
```sh
|
|
324
|
+
$ sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY --no-autodetect -p http://my.corp.proxy.com:9090
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
and set the config as described above.
|