Hello there,
I am new to Docker and my previous employee who left the company used docker image along with Nexus2 to run the selenium scripts. I got a few steps on how to install and setup the docker but on my Selenium grid I don't see webdriver and my scripts using protractor not running. Please find the scripts that I ran in my command prompt to setup. Please let me know if I missed anything that webdriver not installed
Build the image:
Docker build -t prna-tests-image -f test/Dockerfile .
Create the network:
docker network create --subnet 172.20.0.0/16 --ip-range 172.20.240.0/20 prna-network
Build the image and container for selenium hub:
docker run -d -p 4444:4444 --name selenium-hub nexus2.xxx.xxx.xxx:18443/selenium/hub:3.141.59
docker network create --subnet 172.20.0.0/16 --ip-range 172.20.240.0/20 prna-network
Connect the network to selenium hub:
docker network connect prna-network selenium-hub
Build the image and container for chrome browser:
docker run -d --name selenium-node-chrome -e HUB_HOST=selenium-hub --env HTTP_PROXY=http://proxy.dc1.xxx.xxx:80 --env HTTPS_PROXY=http://proxy.dc1.xxx.xxx:80 --env NO_PROXY=.xxx.xxx nexus2.xxx.xxx.xxx:18443/selenium/node-chrome:3.141.59
Run selenium hub and build the image and container for the tests:
docker run --rm --name prna-tests-container --network=prna-network --env RAVEN_JWT_CLIENT_ID=$RAVEN_JWT_CLIENT_ID --env RAVEN_JWT_CLIENT_PASS=$RAVEN_JWT_CLIENT_PASS --env RAVEN_OAUTH_USERNAME=$RAVEN_OAUTH_USERNAME --env RAVEN_OAUTH_TOKEN_URL=$RAVEN_OAUTH_TOKEN_URL -v "C:\prna\prna-webapp\test\test_output:/app/test/test_output" prna-tests-image
code in conf.js
error in console
WebDriverError: Error forwarding the new session Empty pool of VM for setup Capabilities { browserName: 'chrome', acceptInsecureCerts: true, 'goog:chromeOptions': { w3c: false, args: [ '--no-sandbox', '--headless', '--disable-gpu', '--window-size=1200,1200', '--allow-insecure-localhost', '--allow-running-insecure-content', '--ignore_ssl', '--user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36', ], }, }
in the selenium grid this is how it shows
Please help me on how to get the webdriver details shown in selenium grid?
expecting something like this
Thanks in advance
docker run -d -p 4444:4444 --name selenium-hub nexus2.xxx.xxx.xxx:18443/selenium/hub:3.141.59
docker run -d --name selenium-node-chrome -e HUB_HOST=selenium-hub --env HTTP_PROXY=http://proxy.dc1.xxx.xxx:80 --env HTTPS_PROXY=http://proxy.dc1.xxx.xxx:80 --env NO_PROXY=.xxx.xxx nexus2.xxx.xxx.xxx:18443/selenium/node-chrome:3.141.59
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a1afc438-a9af-4dd1-8766-130ebe830e97n%40googlegroups.com.