diff --git a/seleniumbase/behave/behave_sb.py b/seleniumbase/behave/behave_sb.py index a6f9e2f9..d9d1c8df 100644 --- a/seleniumbase/behave/behave_sb.py +++ b/seleniumbase/behave/behave_sb.py @@ -660,8 +660,8 @@ def get_configured_sb(context): if low_key in ["external-pdf", "external_pdf"]: sb.external_pdf = True continue - # Handle: -D remote-debug / remote_debug - if low_key in ["remote-debug", "remote_debug"]: + # Handle: -D remote-debug / remote_debug / remote-debugger + if low_key in ["remote-debug", "remote_debug", "remote-debugger"]: sb.remote_debug = True continue # Handle: -D settings=FILE / settings-file=FILE / settings_file=FILE diff --git a/seleniumbase/core/browser_launcher.py b/seleniumbase/core/browser_launcher.py index f070ab24..115cd9cc 100755 --- a/seleniumbase/core/browser_launcher.py +++ b/seleniumbase/core/browser_launcher.py @@ -640,7 +640,7 @@ def _set_chrome_options( # Opera Chromium only! chrome_options.add_argument("--allow-elevated-browser") if remote_debug: - # To access the Remote Debugger, go to: http://localhost:9222 + # To access the Debugger, go to: chrome://inspect/#devices # while a Chromium driver is running. # Info: https://chromedevtools.github.io/devtools-protocol/ chrome_options.add_argument("--remote-debugging-port=9222") @@ -2131,7 +2131,7 @@ def get_local_driver( if "linux" in PLATFORM or not is_using_uc(undetectable, browser_name): edge_options.add_argument("--no-sandbox") if remote_debug: - # To access the Remote Debugger, go to: http://localhost:9222 + # To access the Debugger, go to: edge://inspect/#devices # while a Chromium driver is running. # Info: https://chromedevtools.github.io/devtools-protocol/ edge_options.add_argument("--remote-debugging-port=9222") diff --git a/seleniumbase/plugins/pytest_plugin.py b/seleniumbase/plugins/pytest_plugin.py index c6b0ed84..ed628911 100644 --- a/seleniumbase/plugins/pytest_plugin.py +++ b/seleniumbase/plugins/pytest_plugin.py @@ -946,12 +946,15 @@ def pytest_addoption(parser): parser.addoption( "--remote_debug", "--remote-debug", + "--remote-debugger", + "--remote_debugger", action="store_true", dest="remote_debug", default=False, - help="""This enables Chromium's remote debugger. + help="""This syncs the browser to Chromium's remote debugger. To access the remote debugging interface, go to: - http://localhost:9222 while Chromedriver is running. + chrome://inspect/#devices while tests are running. + The previous URL was at: http://localhost:9222/ Info: chromedevtools.github.io/devtools-protocol/""", ) parser.addoption( diff --git a/seleniumbase/plugins/selenium_plugin.py b/seleniumbase/plugins/selenium_plugin.py index b683397e..b204f145 100755 --- a/seleniumbase/plugins/selenium_plugin.py +++ b/seleniumbase/plugins/selenium_plugin.py @@ -704,12 +704,15 @@ class SeleniumBrowser(Plugin): parser.add_option( "--remote_debug", "--remote-debug", + "--remote-debugger", + "--remote_debugger", action="store_true", dest="remote_debug", default=False, - help="""This enables Chromium's remote debugger. + help="""This syncs the browser to Chromium's remote debugger. To access the remote debugging interface, go to: - http://localhost:9222 while Chromedriver is running. + chrome://inspect/#devices while tests are running. + The previous URL was at: http://localhost:9222/ Info: chromedevtools.github.io/devtools-protocol/""", ) parser.add_option(