@@ -38,10 +38,7 @@ def __init__(self) -> None:
3838
3939 @property
4040 def binary_location (self ) -> str :
41- """
42- Returns:
43- The location of the binary, otherwise an empty string.
44- """
41+ """Returns the location of the binary, otherwise an empty string."""
4542 return self ._binary_location
4643
4744 @binary_location .setter
@@ -57,16 +54,12 @@ def binary_location(self, value: str) -> None:
5754
5855 @property
5956 def debugger_address (self ) -> Optional [str ]:
60- """
61- Returns:
62- The address of the remote devtools instance.
63- """
57+ """Returns the address of the remote devtools instance."""
6458 return self ._debugger_address
6559
6660 @debugger_address .setter
6761 def debugger_address (self , value : str ) -> None :
68- """Allows you to set the address of the remote devtools instance that
69- the ChromeDriver instance will try to connect to during an active wait.
62+ """Set the address of the remote devtools instance for active wait connection.
7063
7164 Args:
7265 value: Address of remote devtools instance if any (hostname[:port]).
@@ -77,10 +70,7 @@ def debugger_address(self, value: str) -> None:
7770
7871 @property
7972 def extensions (self ) -> list [str ]:
80- """
81- Returns:
82- A list of encoded extensions that will be loaded.
83- """
73+ """Returns a list of encoded extensions that will be loaded."""
8474
8575 def _decode (file_data : BinaryIO ) -> str :
8676 # Should not use base64.encodestring() which inserts newlines every
@@ -96,8 +86,7 @@ def _decode(file_data: BinaryIO) -> str:
9686 return encoded_extensions + self ._extensions
9787
9888 def add_extension (self , extension : str ) -> None :
99- """Adds the path to the extension to a list that will be used to
100- extract it to the ChromeDriver.
89+ """Add the path to an extension to be extracted to ChromeDriver.
10190
10291 Args:
10392 extension: Path to the *.crx file.
@@ -112,8 +101,7 @@ def add_extension(self, extension: str) -> None:
112101 raise ValueError ("argument can not be null" )
113102
114103 def add_encoded_extension (self , extension : str ) -> None :
115- """Adds Base64 encoded string with extension data to a list that will
116- be used to extract it to the ChromeDriver.
104+ """Add Base64-encoded string with extension data to be extracted to ChromeDriver.
117105
118106 Args:
119107 extension: Base64 encoded string with extension data.
@@ -125,10 +113,7 @@ def add_encoded_extension(self, extension: str) -> None:
125113
126114 @property
127115 def experimental_options (self ) -> dict :
128- """
129- Returns:
130- A dictionary of experimental options for chromium.
131- """
116+ """Returns a dictionary of experimental options for chromium."""
132117 return self ._experimental_options
133118
134119 def add_experimental_option (self , name : str , value : Union [str , int , dict , list [str ]]) -> None :
@@ -142,11 +127,7 @@ def add_experimental_option(self, name: str, value: Union[str, int, dict, list[s
142127
143128 @property
144129 def enable_webextensions (self ) -> bool :
145- """
146- Returns:
147- Whether webextension support is enabled for Chromium-based browsers.
148- True if webextension support is enabled, False otherwise.
149- """
130+ """Return whether webextension support is enabled for Chromium-based browsers."""
150131 return self ._enable_webextensions
151132
152133 @enable_webextensions .setter
0 commit comments