Skip to content

Commit 5d80af5

Browse files
committed
Update options
1 parent c47cf20 commit 5d80af5

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

seleniumbase/behave/behave_sb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ def get_configured_sb(context):
660660
if low_key in ["external-pdf", "external_pdf"]:
661661
sb.external_pdf = True
662662
continue
663-
# Handle: -D remote-debug / remote_debug
664-
if low_key in ["remote-debug", "remote_debug"]:
663+
# Handle: -D remote-debug / remote_debug / remote-debugger
664+
if low_key in ["remote-debug", "remote_debug", "remote-debugger"]:
665665
sb.remote_debug = True
666666
continue
667667
# Handle: -D settings=FILE / settings-file=FILE / settings_file=FILE

seleniumbase/core/browser_launcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def _set_chrome_options(
640640
# Opera Chromium only!
641641
chrome_options.add_argument("--allow-elevated-browser")
642642
if remote_debug:
643-
# To access the Remote Debugger, go to: http://localhost:9222
643+
# To access the Debugger, go to: chrome://inspect/#devices
644644
# while a Chromium driver is running.
645645
# Info: https://chromedevtools.github.io/devtools-protocol/
646646
chrome_options.add_argument("--remote-debugging-port=9222")
@@ -2131,7 +2131,7 @@ def get_local_driver(
21312131
if "linux" in PLATFORM or not is_using_uc(undetectable, browser_name):
21322132
edge_options.add_argument("--no-sandbox")
21332133
if remote_debug:
2134-
# To access the Remote Debugger, go to: http://localhost:9222
2134+
# To access the Debugger, go to: edge://inspect/#devices
21352135
# while a Chromium driver is running.
21362136
# Info: https://chromedevtools.github.io/devtools-protocol/
21372137
edge_options.add_argument("--remote-debugging-port=9222")

seleniumbase/plugins/pytest_plugin.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,12 +946,15 @@ def pytest_addoption(parser):
946946
parser.addoption(
947947
"--remote_debug",
948948
"--remote-debug",
949+
"--remote-debugger",
950+
"--remote_debugger",
949951
action="store_true",
950952
dest="remote_debug",
951953
default=False,
952-
help="""This enables Chromium's remote debugger.
954+
help="""This syncs the browser to Chromium's remote debugger.
953955
To access the remote debugging interface, go to:
954-
http://localhost:9222 while Chromedriver is running.
956+
chrome://inspect/#devices while tests are running.
957+
The previous URL was at: http://localhost:9222/
955958
Info: chromedevtools.github.io/devtools-protocol/""",
956959
)
957960
parser.addoption(

seleniumbase/plugins/selenium_plugin.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,12 +704,15 @@ def options(self, parser, env):
704704
parser.add_option(
705705
"--remote_debug",
706706
"--remote-debug",
707+
"--remote-debugger",
708+
"--remote_debugger",
707709
action="store_true",
708710
dest="remote_debug",
709711
default=False,
710-
help="""This enables Chromium's remote debugger.
712+
help="""This syncs the browser to Chromium's remote debugger.
711713
To access the remote debugging interface, go to:
712-
http://localhost:9222 while Chromedriver is running.
714+
chrome://inspect/#devices while tests are running.
715+
The previous URL was at: http://localhost:9222/
713716
Info: chromedevtools.github.io/devtools-protocol/""",
714717
)
715718
parser.add_option(

0 commit comments

Comments
 (0)