File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
py/selenium/webdriver/common Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,7 @@ def __init__(self) -> None:
367
367
self ._proxy = None
368
368
self .set_capability ("pageLoadStrategy" , PageLoadStrategy .normal )
369
369
self .mobile_options = None
370
+ self ._ignore_local_proxy = False
370
371
371
372
@property
372
373
def capabilities (self ):
@@ -404,14 +405,18 @@ def to_capabilities(self):
404
405
def default_capabilities (self ):
405
406
"""Return minimal capabilities necessary as a dictionary."""
406
407
408
+ def ignore_local_proxy_environment_variables (self ) -> None :
409
+ """By calling this you will ignore HTTP_PROXY and HTTPS_PROXY from
410
+ being picked up and used."""
411
+ self ._ignore_local_proxy = True
412
+
407
413
408
414
class ArgOptions (BaseOptions ):
409
415
BINARY_LOCATION_ERROR = "Binary Location Must be a String"
410
416
411
417
def __init__ (self ) -> None :
412
418
super ().__init__ ()
413
419
self ._arguments = []
414
- self ._ignore_local_proxy = False
415
420
416
421
@property
417
422
def arguments (self ):
@@ -432,7 +437,7 @@ def add_argument(self, argument) -> None:
432
437
def ignore_local_proxy_environment_variables (self ) -> None :
433
438
"""By calling this you will ignore HTTP_PROXY and HTTPS_PROXY from
434
439
being picked up and used."""
435
- self . _ignore_local_proxy = True
440
+ super (). ignore_local_proxy_environment_variables ()
436
441
437
442
def to_capabilities (self ):
438
443
return self ._caps
You can’t perform that action at this time.
0 commit comments