Skip to content

Commit b8000bb

Browse files
committed
Update pytest_plugin.py
1 parent bd2754a commit b8000bb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

seleniumbase/plugins/pytest_plugin.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,19 @@ def pytest_addoption(parser):
886886
'\n (DO NOT combine "--forked" with "--rs"/"--reuse-session"!)\n'
887887
)
888888

889+
# Recorder Mode does not support multi-threaded / multi-process runs.
890+
if (
891+
"--recorder" in sys_argv
892+
or "--record" in sys_argv
893+
or "--rec" in sys_argv
894+
):
895+
arg_join = " ".join(sys.argv)
896+
if ("-n" in sys_argv) or (" -n=" in arg_join) or ("-c" in sys_argv):
897+
raise Exception(
898+
"\n\n Recorder Mode does NOT support multi-process mode (-n)!"
899+
'\n (DO NOT combine "--recorder" with "-n NUM_PROCESSES"!)\n'
900+
)
901+
889902
# As a shortcut, you can use "--edge" instead of "--browser=edge", etc,
890903
# but you can only specify one default browser for tests. (Default: chrome)
891904
browser_changes = 0

0 commit comments

Comments
 (0)