Skip to content

Commit 00bdc9e

Browse files
committed
Raise an exception if running multi-threaded Safari tests
1 parent 5cff80d commit 00bdc9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ def get_local_driver(
545545
else:
546546
return webdriver.Edge()
547547
elif browser_name == constants.Browser.SAFARI:
548+
if "".join(sys.argv) == "-c": # Skip if multithreaded
549+
raise Exception("Can't run Safari tests in multi-threaded mode!")
548550
return webdriver.Safari()
549551
elif browser_name == constants.Browser.OPERA:
550552
if LOCAL_OPERADRIVER and os.path.exists(LOCAL_OPERADRIVER):

0 commit comments

Comments
 (0)