File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1688,7 +1688,10 @@ def _set_chrome_options(
1688
1688
chrome_options .add_argument ("--ignore-certificate-errors" )
1689
1689
if not enable_ws :
1690
1690
chrome_options .add_argument ("--disable-web-security" )
1691
- if IS_LINUX or not is_using_uc (undetectable , browser_name ):
1691
+ if (
1692
+ IS_LINUX
1693
+ or (IS_MAC and not is_using_uc (undetectable , browser_name ))
1694
+ ):
1692
1695
chrome_options .add_argument ("--no-sandbox" )
1693
1696
if remote_debug :
1694
1697
# To access the Debugger, go to: chrome://inspect/#devices
@@ -3405,7 +3408,10 @@ def get_local_driver(
3405
3408
edge_options .add_argument ("--allow-running-insecure-content" )
3406
3409
if user_agent :
3407
3410
edge_options .add_argument ("--user-agent=%s" % user_agent )
3408
- if IS_LINUX or not is_using_uc (undetectable , browser_name ):
3411
+ if (
3412
+ IS_LINUX
3413
+ or (IS_MAC and not is_using_uc (undetectable , browser_name ))
3414
+ ):
3409
3415
edge_options .add_argument ("--no-sandbox" )
3410
3416
if remote_debug :
3411
3417
# To access the Debugger, go to: edge://inspect/#devices
You can’t perform that action at this time.
0 commit comments