I tried to execute the karate script using webdriver docker containers - selenium/node-chrome-debug:latest and selenium/node-firefox-debug:latest. I could able to execute the karate script in chrome container but not in firefox container .
Its throwing - http response code: 500 "Reached error page: about:neterror?e=connectionFailure" , although proxy is set , its not loading any page instead displays unable to connect error page in firefox . I have latest version 1.1.0 in pom.
Below are the docker commands executed :
docker run -d -p 4444:4444 --net network --name selenium-hub selenium/hub:latest
docker run -d -p 5900:5900 --net network -e HUB_HOST=selenium-hub -e -NODE_MAX_INSTANCES=1 -e NODE_MAX_SESSION=1 -v /dev/shm:/dev/shm selenium/node-f network -e HUB_HOST=selenium-hub -e -NODE_MAX_INSTANCES=1 -e NODE_MAX_SESSION=1 -v /dev/shm:/dev/shm selenium/node-firefox-debug:latest
Below are the karate driver config tried. But issue exists the same for all the below config
karate.configure('driver', { type: 'geckodriver', webDriverSession: { capabilities: { browserName: 'firefox' } , desiredCapabilities: { browserName: 'firefox' } } , start: false, showDriverLog: true, webDriverUrl: 'http://localhost:4444/wd/hub' });
karate.configure('driver', { type: 'geckodriver', start: false, showDriverLog: true, webDriverUrl: 'http://localhost:4444/wd/hub' });
karate.configure('driver', { type: 'geckodriver', start: false, showDriverLog: true, webDriverSession: { capabilities: { browserName: 'firefox', proxy: { proxyType: 'manual', httpProxy: 'proxyurl' } },desiredCapabilities: { browserName: 'firefox' } } , webDriverUrl: 'http://localhost:4444/wd/hub' });
Issue exists the same even with firefox standalone docker container!