Skip to content

Commit

Permalink
[wdspec] Fix PauseAction in WebDriver bidi client
Browse files Browse the repository at this point in the history
Depends on D175503

Differential Revision: https://phabricator.services.mozilla.com/D175862

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1806801
gecko-commit: f4701ca432c70266d3fe9ca62f3f62dbdafc763d
gecko-reviewers: webdriver-reviewers, jgraham
  • Loading branch information
juliandescottes authored and pull[bot] committed Oct 19, 2023
1 parent b0ee94f commit 1131755
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/webdriver/webdriver/bidi/modules/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ class PauseAction(Action):
def __init__(self, duration: Optional[int] = None):
self.duration = duration

def to_json(self) -> MutableMapping[str, Any]:
rv = super().to_json()
if self.duration is not None:
rv["duration"] = self.duration
return rv


class KeyAction(Action):
def __init__(self, key: str):
Expand Down

0 comments on commit 1131755

Please sign in to comment.