Skip to content

Commit

Permalink
Bug 1531229 [wpt PR 15556] - [wptrunner] Do not use undefined method,…
Browse files Browse the repository at this point in the history
… a=testonly

Automatic update from web-platform-tests
[wptrunner] Do not use undefined method

The Selenium wire protocol does not define a "set window rect" method
[1]. Implement the desired behavior by composing the "set window
position" and "set window size" methods.

[1] https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol

--

wpt-commits: 823542ced8f584e121f6196702e1a7e5958530ed
wpt-pr: 15556

UltraBlame original commit: 0d8c97a32de38d0f89212ff22b484d043748d1b7
  • Loading branch information
marco-c committed Oct 4, 2019
1 parent 4cdbf9e commit 07357a1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ def do_test(self, test):
"""return [window.outerWidth - window.innerWidth,
window.outerHeight - window.innerHeight];"""
)
self.protocol.webdriver.set_window_rect(0, 0, 800 + width_offset, 600 + height_offset)
self.protocol.webdriver.set_window_size(0, 0)
self.protocol.webdriver.set_window_position(800 + width_offset, 600 + height_offset)

result = self.implementation.run_test(test)

Expand Down

0 comments on commit 07357a1

Please sign in to comment.