Skip to content
Merged
Show file tree
Hide file tree
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: 1 addition & 3 deletions py/selenium/webdriver/common/bidi/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,7 @@ def from_dict(cls, data: dict) -> "ClientWindowInfo":


class Browser:
"""
BiDi implementation of the browser module.
"""
"""BiDi implementation of the browser module."""

def __init__(self, conn):
self.conn = conn
Expand Down
4 changes: 1 addition & 3 deletions py/selenium/webdriver/common/bidi/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,7 @@ def from_json(cls, json):


class Input:
"""
BiDi implementation of the input module.
"""
"""BiDi implementation of the input module."""

def __init__(self, conn):
self.conn = conn
Expand Down
4 changes: 1 addition & 3 deletions py/selenium/webdriver/common/bidi/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ def to_dict(self) -> dict:


class Permissions:
"""
BiDi implementation of the permissions module.
"""
"""BiDi implementation of the permissions module."""

def __init__(self, conn):
self.conn = conn
Expand Down
4 changes: 1 addition & 3 deletions py/selenium/webdriver/common/bidi/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,7 @@ def execute(self, script: str, *args) -> dict:
raise WebDriverException(error_message)

def __convert_to_local_value(self, value) -> dict:
"""
Converts a Python value to BiDi LocalValue format.
"""
"""Converts a Python value to BiDi LocalValue format."""
if value is None:
return {"type": "null"}
elif isinstance(value, bool):
Expand Down
4 changes: 1 addition & 3 deletions py/selenium/webdriver/common/bidi/webextension.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@


class WebExtension:
"""
BiDi implementation of the webExtension module.
"""
"""BiDi implementation of the webExtension module."""

def __init__(self, conn):
self.conn = conn
Expand Down
5 changes: 4 additions & 1 deletion py/selenium/webdriver/common/print_page_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,10 @@ def __init__(self) -> None:
self._margin: _MarginOpts = {}

def to_dict(self) -> _PrintOpts:
""":Returns: A hash of print options configured."""
"""
Returns:
A hash of print options configured.
"""
return self._print_options

def set_page_size(self, page_size: dict) -> None:
Expand Down
15 changes: 12 additions & 3 deletions py/selenium/webdriver/firefox/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def binary(self, new_binary: Union[str, FirefoxBinary]) -> None:

@property
def binary_location(self) -> str:
""":Returns: The location of the binary."""
"""
Returns:
The location of the binary.
"""
return self._binary_location

@binary_location.setter # noqa
Expand All @@ -76,7 +79,10 @@ def binary_location(self, value: str) -> None:

@property
def preferences(self) -> dict:
""":Returns: A dict of preferences."""
"""
Returns:
A dict of preferences.
"""
return self._preferences

def set_preference(self, name: str, value: Union[str, int, bool]):
Expand All @@ -85,7 +91,10 @@ def set_preference(self, name: str, value: Union[str, int, bool]):

@property
def profile(self) -> Optional[FirefoxProfile]:
""":Returns: The Firefox profile to use."""
"""
Returns:
The Firefox profile to use.
"""
return self._profile

@profile.setter
Expand Down