@@ -1196,15 +1196,15 @@ def pytest_addoption(parser):
1196
1196
for arg in sys_argv :
1197
1197
if "--timeout=" in arg :
1198
1198
raise Exception (
1199
- "\n \n Don't use --timeout=s from pytest-timeout! "
1199
+ "\n Don't use --timeout=s from pytest-timeout! "
1200
1200
"\n It's not thread-safe for WebDriver processes! "
1201
1201
"\n Use --time-limit=s from SeleniumBase instead!\n "
1202
1202
)
1203
1203
1204
1204
# Dashboard Mode does not support tests using forked subprocesses.
1205
1205
if "--forked" in sys_argv and "--dashboard" in sys_argv :
1206
1206
raise Exception (
1207
- "\n \n Dashboard Mode does NOT support forked subprocesses!"
1207
+ "\n Dashboard Mode does NOT support forked subprocesses!"
1208
1208
'\n (*** DO NOT combine "--forked" with "--dashboard"! ***)\n '
1209
1209
)
1210
1210
@@ -1213,7 +1213,7 @@ def pytest_addoption(parser):
1213
1213
"--rs" in sys_argv or "--reuse-session" in sys_argv
1214
1214
):
1215
1215
raise Exception (
1216
- "\n \n Reuse-Session Mode does NOT support forked subprocesses!"
1216
+ "\n Reuse-Session Mode does NOT support forked subprocesses!"
1217
1217
'\n (DO NOT combine "--forked" with "--rs"/"--reuse-session"!)\n '
1218
1218
)
1219
1219
@@ -1225,7 +1225,7 @@ def pytest_addoption(parser):
1225
1225
):
1226
1226
if ("-n" in sys_argv ) or (" -n=" in arg_join ) or ("-c" in sys_argv ):
1227
1227
raise Exception (
1228
- "\n \n Recorder Mode does NOT support multi-process mode (-n)!"
1228
+ "\n Recorder Mode does NOT support multi-process mode (-n)!"
1229
1229
'\n (DO NOT combine "--recorder" with "-n NUM_PROCESSES"!)\n '
1230
1230
)
1231
1231
@@ -1303,7 +1303,7 @@ def pytest_addoption(parser):
1303
1303
sb_config ._browser_shortcut = "safari"
1304
1304
browser_list .append ("--safari" )
1305
1305
if browser_changes > 1 :
1306
- message = "\n \n TOO MANY browser types were entered!"
1306
+ message = "\n TOO MANY browser types were entered!"
1307
1307
message += "\n There were %s found:\n > %s" % (
1308
1308
browser_changes ,
1309
1309
", " .join (browser_list ),
@@ -1317,7 +1317,7 @@ def pytest_addoption(parser):
1317
1317
and browser_text not in ["chrome" , "edge" ]
1318
1318
):
1319
1319
message = (
1320
- "\n \n Recorder Mode ONLY supports Chrome and Edge!"
1320
+ "\n Recorder Mode ONLY supports Chrome and Edge!"
1321
1321
'\n (Your browser choice was: "%s")\n ' % browser_list [0 ]
1322
1322
)
1323
1323
raise Exception (message )
@@ -1340,21 +1340,20 @@ def pytest_addoption(parser):
1340
1340
and undetectable
1341
1341
):
1342
1342
message = (
1343
- '\n \n Undetected-Chromedriver Mode ONLY supports Chrome!'
1343
+ '\n Undetected-Chromedriver Mode ONLY supports Chrome!'
1344
1344
'\n ("--uc" / "--undetected" / "--undetectable")'
1345
1345
'\n (Your browser choice was: "%s")\n ' % browser_list [0 ]
1346
1346
)
1347
1347
raise Exception (message )
1348
1348
if undetectable and "--wire" in sys_argv :
1349
1349
raise Exception (
1350
- "\n \n SeleniumBase doesn't support mixing --uc with --wire mode!"
1350
+ "\n SeleniumBase doesn't support mixing --uc with --wire mode!"
1351
1351
"\n If you need both, override get_new_driver() from BaseCase:"
1352
1352
"\n https://seleniumbase.io/help_docs/syntax_formats/#sb_sf_09\n "
1353
1353
)
1354
1354
if undetectable and "--mobile" in sys_argv :
1355
1355
raise Exception (
1356
- "\n \n SeleniumBase doesn't support mixing --uc with --mobile"
1357
- '\n UC has: "unrecognized chrome option: mobileEmulation"!\n '
1356
+ "\n SeleniumBase doesn't support mixing --uc with --mobile\n "
1358
1357
)
1359
1358
1360
1359
0 commit comments