I am trying to run my automation GUI test suites which is located in my automation container.
I seperately downloaded standalone selenium-firefox image and running as container running on port 4444. which is running on
localhost:4444/wd/hub
Now, I am trying to run the test suites which is in my automation container, i am using below code to run in headless mode to reach the firefox version of selenium in my robotframework test suite.
Open Browser http://www.youtube.com headlessfirefox remote_url=http://localhost:4444/wd/hub
This approach is working fine when i run my test suite from my machine, it fails when i run it inside the automation container.
is there any way that my automation container can reach the selenium-firefox container to use the browser.
Error:
C: 10: Open Chrome headless
/usr/local/lib/python3.6/site-packages/requests/__init__.py:91:
RequestsDependencyWarning: urllib3 (1.26.3) or chardet (3.0.4) doesn't
match a supported version!
RequestsDependencyWarning)
[ WARN ] Retrying (Retry(total=2, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<urllib3.connection.HTTPConnection object at
0x7f4a322440b8>: Failed to establish a
[ WARN ] Retrying (Retry(total=1, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<urllib3.connection.HTTPConnection object at
0x7f4a32244710>: Failed to establish a
new connection: [Errno 111] Connection refused',)': /wd/hub/session
[ WARN ] Retrying (Retry(total=0, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<urllib3.connection.HTTPConnection object at
0x7f4a32235710>: Failed to establish a
new connection: [Errno 111] Connection refused',)': /wd/hub/session
| FAIL |
MaxRetryError: HTTPConnectionPool(host='localhost', port=4444): Max
retries exceeded with url: /wd/hub/session (Caused by
NewConnectionError('<urllib3.connection.HTTPConnection object at
0x7f4a32235438>: Failed to establish a new connection: [Errno 111]
Connection refused',))
Any help would be thankful