Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tools/wptrunner/wptrunner/executors/executorwebdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,16 @@ def create_test_window(self, protocol):
protocol.base.set_window(test_window)
# Wait until about:blank has been loaded
protocol.base.execute_script(self.window_loaded_script, asynchronous=True)

# Move focus to the test window. This should not be fallible because the
# document will always be the initial about:blank, and thus there is no
# content in the page to obscure the centre point of the root element.
#
# TODO(web-platform-tests/rfcs#231): This is only a de facto assumption.
# Finalize what the desired behavior should be.
selector = protocol.base.execute_script('return document.documentElement;')
protocol.click.element(selector)

return test_window


Expand Down
Loading