Skip to content

Commit 2dd9bb9

Browse files
[py] Poll quicker for the driver when starting up. Fixes #8477
1 parent 4e18aa3 commit 2dd9bb9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

py/selenium/webdriver/common/service.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ def start(self):
9898
self.assert_process_still_running()
9999
if self.is_connectable():
100100
break
101+
101102
count += 1
102-
time.sleep(1)
103-
if count == 30:
103+
time.sleep(0.5)
104+
if count == 60:
104105
raise WebDriverException("Can not connect to the Service %s" % self.path)
105106

106107
def assert_process_still_running(self):

0 commit comments

Comments
 (0)