@@ -255,6 +255,51 @@ Scenario('test some forms', (I, docsPage) => {
255
255
});
256
256
` ` `
257
257
258
+ ## Connect through proxy
259
+
260
+ CodeceptJS also provides flexible options when you want to execute tests to Selenium servers through proxy. You will
261
+ need to update the ` helpers .WebDriverIO .proxy ` key.
262
+
263
+ ` ` ` js
264
+ {
265
+ " helpers" : {
266
+ " WebDriverIO" : {
267
+ " proxy" : {
268
+ " proxyType" : " manual|pac" ,
269
+ " proxyAutoconfigUrl" : " URL TO PAC FILE" ,
270
+ " httpProxy" : " PROXY SERVER" ,
271
+ " sslProxy" : " PROXY SERVER" ,
272
+ " ftpProxy" : " PROXY SERVER" ,
273
+ " socksProxy" : " PROXY SERVER" ,
274
+ " socksUsername" : " USERNAME" ,
275
+ " socksPassword" : " PASSWORD" ,
276
+ " noProxy" : " BYPASS ADDRESSES"
277
+ }
278
+ }
279
+ }
280
+ }
281
+ ` ` `
282
+
283
+ For example,
284
+
285
+ ` ` ` js
286
+ {
287
+ " helpers" : {
288
+ " WebDriverIO" : {
289
+ " proxy" : {
290
+ " proxyType" : " manual" ,
291
+ " httpProxy" : " http://corporate.proxy:8080" ,
292
+ " socksUsername" : " codeceptjs" ,
293
+ " socksPassword" : " secret" ,
294
+ " noProxy" : " 127.0.0.1,localhost"
295
+ }
296
+ }
297
+ }
298
+ }
299
+ ` ` `
300
+
301
+ Please refer to [Selenium - Proxy Object](https://code.google.com/p/selenium/wiki/DesiredCapabilities#Proxy_JSON_Object) for more information.
302
+
258
303
## Current State
259
304
260
305
CodeceptJS is in its early days. Any feedback, issues, and pull requests are welcome. Try it, and if you like it - help us make it better!
0 commit comments