mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Make servodriver wait until the server starts accepting TCP connections
This commit is contained in:
parent
780e21c970
commit
9b80369efb
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,9 @@ class ServoWebDriverProtocol(Protocol):
|
|||
|
||||
def connect(self):
|
||||
"""Connect to browser via WebDriver."""
|
||||
# Largish timeout for the case where we're booting an Android emulator.
|
||||
wait_for_service((self.host, self.port), timeout=120)
|
||||
|
||||
self.session = webdriver.Session(self.host, self.port, extension=ServoCommandExtensions)
|
||||
self.session.start()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue