diff --git a/examples/raw_parameter_script.py b/examples/raw_parameter_script.py index ebfa2462..951d2083 100755 --- a/examples/raw_parameter_script.py +++ b/examples/raw_parameter_script.py @@ -53,6 +53,7 @@ except (ImportError, ValueError): sb.use_auto_ext = False sb.no_sandbox = False sb.disable_gpu = False + sb._multithreaded = False sb._reuse_session = False sb._crumbs = False sb.visual_baseline = False diff --git a/seleniumbase/plugins/pytest_plugin.py b/seleniumbase/plugins/pytest_plugin.py index 84a8650d..80f5a0e8 100644 --- a/seleniumbase/plugins/pytest_plugin.py +++ b/seleniumbase/plugins/pytest_plugin.py @@ -754,9 +754,9 @@ def pytest_configure(config): sb_config._html_report_name = None # The name of the pytest html report arg_join = " ".join(sys.argv) - if ("-n" in sys.argv) or ("-n=" in arg_join): + if ("-n" in sys.argv) or (" -n=" in arg_join) or ("-c" in sys.argv): sb_config._multithreaded = True - if ("--html" in sys.argv or "--html=" in arg_join): + if ("--html" in sys.argv or " --html=" in arg_join): sb_config._using_html_report = True sb_config._html_report_name = config.getoption("htmlpath") if sb_config.dashboard: diff --git a/seleniumbase/plugins/selenium_plugin.py b/seleniumbase/plugins/selenium_plugin.py index d9a94b47..51c7d35d 100755 --- a/seleniumbase/plugins/selenium_plugin.py +++ b/seleniumbase/plugins/selenium_plugin.py @@ -469,6 +469,7 @@ class SeleniumBrowser(Plugin): test.test.timeout_multiplier = self.options.timeout_multiplier test.test.use_grid = False test.test.dashboard = False + test.test._multithreaded = False test.test._reuse_session = False if test.test.servername != "localhost": # Use Selenium Grid (Use --server="127.0.0.1" for localhost Grid)