@@ -88,9 +88,7 @@ def __set__(self, obj, value):
8888 if value in ("normal" , "eager" , "none" ):
8989 obj .set_capability (self .name , value )
9090 else :
91- raise ValueError (
92- "Strategy can only be one of the following: normal, eager, none"
93- )
91+ raise ValueError ("Strategy can only be one of the following: normal, eager, none" )
9492
9593
9694class _UnHandledPromptBehaviorDescriptor :
@@ -144,9 +142,7 @@ def __set__(self, obj, value):
144142 if all (x in ("implicit" , "pageLoad" , "script" ) for x in value .keys ()):
145143 obj .set_capability (self .name , value )
146144 else :
147- raise ValueError (
148- "Timeout keys can only be one of the following: implicit, pageLoad, script"
149- )
145+ raise ValueError ("Timeout keys can only be one of the following: implicit, pageLoad, script" )
150146
151147
152148class _ProxyDescriptor :
@@ -160,9 +156,7 @@ def __get__(self, obj, cls):
160156
161157 def __set__ (self , obj , value ):
162158 if not isinstance (value , Proxy ):
163- raise InvalidArgumentException (
164- "Only Proxy objects can be passed in."
165- )
159+ raise InvalidArgumentException ("Only Proxy objects can be passed in." )
166160 obj ._proxy = value
167161 obj ._caps [self .name ] = value .to_capabilities ()
168162
@@ -236,9 +230,7 @@ class BaseOptions(metaclass=ABCMeta):
236230 - `None`
237231 """
238232
239- strict_file_interactability = _BaseOptionsDescriptor (
240- "strictFileInteractability"
241- )
233+ strict_file_interactability = _BaseOptionsDescriptor ("strictFileInteractability" )
242234 """Gets and Sets whether session is about file interactability.
243235
244236 Usage
@@ -348,9 +340,7 @@ class BaseOptions(metaclass=ABCMeta):
348340 - `None`
349341 """
350342
351- unhandled_prompt_behavior = _UnHandledPromptBehaviorDescriptor (
352- "unhandledPromptBehavior"
353- )
343+ unhandled_prompt_behavior = _UnHandledPromptBehaviorDescriptor ("unhandledPromptBehavior" )
354344 """:Gets and Sets unhandled prompt behavior, the default is "dismiss and
355345 notify".
356346
0 commit comments