[py] urllib throws on 404 so let's check the /status endpoint that returns 200
Cr-Mirrored-From: https://chromium.googlesource.com/external/github.com/SeleniumHQ/selenium
Cr-Mirrored-Commit: c746d7a14183fc920a3ed41e2a834a55888fba5c
diff --git a/conftest.py b/conftest.py
index b6882cd..5090310 100644
--- a/conftest.py
+++ b/conftest.py
@@ -198,13 +198,12 @@
try:
urlopen(url)
return 1
- except IOError as e:
- print(e)
+ except IOError:
time.sleep(0.2)
return 0
_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- url = 'http://{}:{}/'.format(_host, _port)
+ url = 'http://{}:{}/status'.format(_host, _port)
try:
_socket.connect((_host, _port))
print('The remote driver server is already running or something else'