@@ -39,15 +39,13 @@ def __init__(self) -> None:
3939
4040 @property
4141 def binary_location (self ) -> str :
42- """
43- :Returns: The location of the binary, otherwise an empty string
44- """
42+ """:Returns: The location of the binary, otherwise an empty string."""
4543 return self ._binary_location
4644
4745 @binary_location .setter
4846 def binary_location (self , value : str ) -> None :
49- """
50- Allows you to set where the chromium binary lives
47+ """Allows you to set where the chromium binary lives.
48+
5149 :Args:
5250 - value: path to the Chromium binary
5351 """
@@ -57,17 +55,14 @@ def binary_location(self, value: str) -> None:
5755
5856 @property
5957 def debugger_address (self ) -> str :
60- """
61- :Returns: The address of the remote devtools instance
62- """
58+ """:Returns: The address of the remote devtools instance."""
6359 return self ._debugger_address
6460
6561 @debugger_address .setter
6662 def debugger_address (self , value : str ) -> None :
67- """
68- Allows you to set the address of the remote devtools instance
69- that the ChromeDriver instance will try to connect to during an
70- active wait.
63+ """Allows you to set the address of the remote devtools instance that
64+ the ChromeDriver instance will try to connect to during an active wait.
65+
7166 :Args:
7267 - value: address of remote devtools instance if any (hostname[:port])
7368 """
@@ -77,9 +72,7 @@ def debugger_address(self, value: str) -> None:
7772
7873 @property
7974 def extensions (self ) -> List [str ]:
80- """
81- :Returns: A list of encoded extensions that will be loaded
82- """
75+ """:Returns: A list of encoded extensions that will be loaded."""
8376
8477 def _decode (file_data : BinaryIO ) -> str :
8578 # Should not use base64.encodestring() which inserts newlines every
@@ -124,9 +117,7 @@ def add_encoded_extension(self, extension: str) -> None:
124117
125118 @property
126119 def experimental_options (self ) -> dict :
127- """
128- :Returns: A dictionary of experimental options for chromium
129- """
120+ """:Returns: A dictionary of experimental options for chromium."""
130121 return self ._experimental_options
131122
132123 def add_experimental_option (self , name : str , value : Union [str , int , dict , List [str ]]) -> None :
@@ -140,9 +131,7 @@ def add_experimental_option(self, name: str, value: Union[str, int, dict, List[s
140131
141132 @property
142133 def headless (self ) -> bool :
143- """
144- :Returns: True if the headless argument is set, else False
145- """
134+ """:Returns: True if the headless argument is set, else False."""
146135 warnings .warn (
147136 "headless property is deprecated, instead check for '--headless' in arguments" ,
148137 DeprecationWarning ,
@@ -176,10 +165,8 @@ def headless(self, value: bool) -> None:
176165 self ._arguments = list (set (self ._arguments ) - args )
177166
178167 def to_capabilities (self ) -> dict :
179- """
180- Creates a capabilities with all the options that have been set
181- :Returns: A dictionary with everything
182- """
168+ """Creates a capabilities with all the options that have been set
169+ :Returns: A dictionary with everything."""
183170 caps = self ._caps
184171 chrome_options = self .experimental_options .copy ()
185172 if self .mobile_options :
0 commit comments