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
4 changes: 2 additions & 2 deletions py/selenium/webdriver/remote/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def get_pinned_scripts(self) -> list[str]:
"""
return list(self.pinned_scripts)

def execute_script(self, script: str, *args):
def execute_script(self, script: str, *args) -> Any:
"""Synchronously Executes JavaScript in the current window/frame.

Args:
Expand All @@ -531,7 +531,7 @@ def execute_script(self, script: str, *args):

return self.execute(command, {"script": script, "args": converted_args})["value"]

def execute_async_script(self, script: str, *args) -> dict:
def execute_async_script(self, script: str, *args) -> Any:
"""Asynchronously Executes JavaScript in the current window/frame.

Args:
Expand Down
Loading