Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Await any async scripts used with Chrome (for custom metrics or scrip…
…t commands)
  • Loading branch information
pmeenan committed Jul 18, 2019
1 parent 11056a8 commit 19f88b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/devtools.py
Expand Up @@ -806,6 +806,7 @@ def execute_js(self, script):
if self.task['error'] is None and not self.main_thread_blocked:
response = self.send_command("Runtime.evaluate",
{'expression': script,
'awaitPromise': True,
'returnByValue': True,
'timeout': 30000},
wait=True, timeout=30)
Expand Down

0 comments on commit 19f88b5

Please sign in to comment.