-
I have a test project that tries to run a selenium test using phpunit. The selenium standalone runs as a service. It seems that php-webdriver is able to accesss the selenium service but I keep getting this:
Here is the relevant part of my workflow file:
What am I doing wrong? Is there a better way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Finally figured it out myself. What was happening was I was using the wrong URL for the selenium hub. I also then ran on to the problem of the selenium service unable to access the php:7.4-apache server (localhost from the selenium server refers to itself, duh). The relevant changes I made were:
The relevant section on the workflow has been changed to this:
|
Beta Was this translation helpful? Give feedback.
Finally figured it out myself. What was happening was I was using the wrong URL for the selenium hub. I also then ran on to the problem of the selenium service unable to access the php:7.4-apache server (localhost from the selenium server refers to itself, duh). The relevant changes I made were:
options: --network-alias=testserver
under test -> container so that selenium container can access it through ‘http://testserver’The relevant section on the workflow has been changed to this: