#StackBounty: #javascript #selenium #selenium-webdriver #webdriver-io #firefox-profile How to use socks authentication in webdriverio

Bounty: 50

I would like to have SOCKSv5 authentication enabled in my webdriverio application. However it doesn’t seem to work at the moment.

So far i have tried the following configurations:

  1. Setting manually using firefox-profile as followed:
fp.setProxy({ 
    proxyType: 'manual', 
    socksProxy: `127.0.0.1:1080`,
    socksUsername: 'myuser',
    socksPassword: 'mypass'
});

this didn’t seem to work as pages simply don’t load.

  1. Using FoxyProxy

I have tried setting the url using its api:

proxy:host=${proxy}&port=1080&isSocks=true&enabled=true&username=myuser&password=mypass

Which gave me a warning that something is accessing its configuration and thus declining the request.

Creating a custom firefox profile and then loading that one doesn’t work as i will have to edit proxies during my applications runtime.

Has anybody came across a solution?


Get this bounty!!!