run_in_headless_android_emulator: add port forwarding for webdriver

This commit is contained in:
Simon Sapin 2018-07-19 18:50:46 +02:00
parent f5ff709c79
commit 33234affc9
2 changed files with 25 additions and 2 deletions

View file

@ -57,8 +57,8 @@ 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)
# Large timeout for the case where we're booting an Android emulator.
wait_for_service((self.host, self.port), timeout=300)
self.session = webdriver.Session(self.host, self.port, extension=ServoCommandExtensions)
self.session.start()