Skip to content

Commit

Permalink
[wptrunner] Fix imports from webdriver module.
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D218717

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1911984
gecko-commit: a542c78a78d7562eab8bc5a2bfe088af2d71bb2c
  • Loading branch information
moz-wptsync-bot committed Aug 9, 2024
1 parent 414598b commit af164a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/wptrunner/wptrunner/executors/asyncactions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# mypy: allow-untyped-defs

from webdriver.bidi.protocol import BidiWindow
import webdriver


class BidiSessionSubscribeAction:
Expand All @@ -20,7 +20,7 @@ async def __call__(self, payload):
# value is extracted from the serialized object.
if isinstance(context, str):
contexts.append(context)
elif isinstance(context, BidiWindow):
elif isinstance(context, webdriver.bidi.protocol.BidiWindow):
contexts.append(context.browsing_context)
else:
raise ValueError("Unexpected context type: %s" % context)
Expand Down
3 changes: 1 addition & 2 deletions tools/wptrunner/wptrunner/executors/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from abc import ABCMeta, abstractmethod
from typing import Any, Awaitable, Callable, ClassVar, List, Mapping, Optional, Type
from webdriver.bidi.modules.script import Target


def merge_dicts(target, source):
Expand Down Expand Up @@ -391,7 +390,7 @@ class BidiScriptProtocolPart(ProtocolPart):
async def call_function(
self,
function_declaration: str,
target: Target,
target: Mapping[str, Any],
arguments: Optional[List[Mapping[str, Any]]] = None
) -> Mapping[str, Any]:
"""
Expand Down

0 comments on commit af164a0

Please sign in to comment.