mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
Update web-platform-tests to revision 8119bc10583682676a3db9806c82ed4044e88e13
This commit is contained in:
parent
56f1e7cbc5
commit
3c256580fa
189 changed files with 4341 additions and 1030 deletions
|
@ -218,7 +218,12 @@ class Actions(object):
|
|||
``ActionSequence.dict``.
|
||||
"""
|
||||
body = {"actions": [] if actions is None else actions}
|
||||
return self.session.send_session_command("POST", "actions", body)
|
||||
actions = self.session.send_session_command("POST", "actions", body)
|
||||
"""WebDriver window should be set to the top level window when wptrunner
|
||||
processes the next event.
|
||||
"""
|
||||
self.session.switch_frame(None)
|
||||
return actions
|
||||
|
||||
@command
|
||||
def release(self):
|
||||
|
@ -308,8 +313,11 @@ class Find(object):
|
|||
self.session = session
|
||||
|
||||
@command
|
||||
def css(self, selector, all=True):
|
||||
return self._find_element("css selector", selector, all)
|
||||
def css(self, element_selector, frame, all=True):
|
||||
if (frame != "window"):
|
||||
self.session.switch_frame(frame)
|
||||
elements = self._find_element("css selector", element_selector, all)
|
||||
return elements
|
||||
|
||||
def _find_element(self, strategy, selector, all):
|
||||
route = "elements" if all else "element"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue