Closed ABSAhmad closed 1 year ago
@ABSAhmad you are using localhost:4445
in Ggr config. Ggr is running in container so localhost
inside container is not the same host as localhost
outside of container. Try to use Selenium container name or docker0
network interface IP address instead.
Hey @vania-pooh,
first of all thanks for the fast reply! :)
I'm actually running selenium grid on the host machine without a docker container and ggr has --net host, so it actually access the correct localhost which I tested by using /bin/sh to get into the ggr container, installed curl and I can access the grid instance just fine.
I'm currently on mobile but will add more information when I'm back at home in a few hours.
Okay so it appears that the issue was related to the chrome version not being explicitly set in the selenium grid. I've now set it manually to 113 and it works now.
Here is the selenium config for reference, should anyone else run into this.
[server]
port = 4445
[node]
detect-drivers = false
drivers = ["chrome"]
[[node.driver-configuration]]
display-name = "Chrome Stable"
stereotype = "{\"browserName\": \"chrome\", \"browserVersion\": \"113\", \"platformName\": \"linux\"}"
webdriver-executable = '/usr/local/bin/chromedriver'
Thanks anyway @vania-pooh
Hello,
I followed the README docs to use ggr and put a selenium standalone server running behind it but unfortunately it just hangs and times out at "SESSION_ATTEMPTED".
I have the following files:
/etc/grid-router/quota/test.xml
selenium standalone running:
Docker run command for ggr (linux host)
ggr logs:
Exception:
I'm using php-webdriver to start the instance with the endpoint being "http://test:test@localhost:4444/wd/hub" (yes I set the ggr user and password both to "test")
If I point my script to the port :4445 (selenium standalone) it works just fine. If I point it to ggr, it logs "SESSION_ATTEMPTED", selenium grid then shows something in the queue (with nothing running) and keeps it there until it times out after 180 seconds.
I can also re-produce the same behaviour with a curl command:
Selenium UI:
Does anyone have an idea how to fix it?