Skip to content

Commit ec15251

Browse files
committed
Update the documentation
1 parent a836524 commit ec15251

File tree

8 files changed

+13
-17
lines changed

8 files changed

+13
-17
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def test_mfa_login(sb):
162162
from seleniumbase import SB
163163

164164
with SB() as sb: # By default, browser="chrome" if not set.
165-
sb.open("https://seleniumbase.github.io/realworld/login")
165+
sb.open("https://seleniumbase.io/realworld/login")
166166
sb.type("#username", "demo_user")
167167
sb.type("#password", "secret_pass")
168168
sb.enter_mfa_code("#totpcode", "GAXG2MTEOR3DMMDG") # 6-digit
@@ -547,10 +547,8 @@ pytest my_first_test.py --pdb
547547
--disable-ws # (Disable Web Security on Chromium-based browsers.)
548548
--enable-ws # (Enable Web Security on Chromium-based browsers.)
549549
--enable-sync # (Enable "Chrome Sync" on websites.)
550-
--use-auto-ext # (Use Chrome's automation extension.)
551550
--uc | --undetected # (Use undetected-chromedriver to evade bot-detection.)
552-
--uc-sub | --uc-subprocess # (Use undetected-chromedriver as a subprocess.)
553-
--remote-debug # (Enable Chrome's Remote Debugger on http://localhost:9222)
551+
--remote-debug # (Sync to Chrome Remote Debugger chrome://inspect/#devices)
554552
--final-debug # (Enter Debug Mode after each test ends. Don't use with CI!)
555553
--dashboard # (Enable the SeleniumBase Dashboard. Saved at: dashboard.html)
556554
--dash-title=STRING # (Set the title shown for the generated dashboard.)

help_docs/customizing_test_runs.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,8 @@ pytest my_first_test.py --settings-file=custom_settings.py
163163
--disable-ws # (Disable Web Security on Chromium-based browsers.)
164164
--enable-ws # (Enable Web Security on Chromium-based browsers.)
165165
--enable-sync # (Enable "Chrome Sync" on websites.)
166-
--use-auto-ext # (Use Chrome's automation extension.)
167166
--uc | --undetected # (Use undetected-chromedriver to evade bot-detection.)
168-
--uc-sub | --uc-subprocess # (Use undetected-chromedriver as a subprocess.)
169-
--remote-debug # (Enable Chrome's Remote Debugger on http://localhost:9222)
167+
--remote-debug # (Sync to Chrome Remote Debugger chrome://inspect/#devices)
170168
--final-debug # (Enter Debug Mode after each test ends. Don't use with CI!)
171169
--dashboard # (Enable the SeleniumBase Dashboard. Saved at: dashboard.html)
172170
--dash-title=STRING # (Set the title shown for the generated dashboard.)

help_docs/how_it_works.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class TestMFALogin(BaseCase):
3434
self.assert_text("Welcome!", "h1")
3535
self.highlight("img#image1") # A fancier assert_element() call
3636
self.click('a:contains("This Page")') # Use :contains() on any tag
37-
self.save_screenshot_to_logs() # In "./latest_logs/" folder.
37+
self.save_screenshot_to_logs() # ("./latest_logs" folder for test)
3838
self.click_link("Sign out") # Link must be "a" tag. Not "button".
3939
self.assert_element('a:contains("Sign in")')
4040
self.assert_exact_text("You have been signed out!", "#top_message")

seleniumbase/behave/behave_sb.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@
7171
-D disable-ws (Disable Web Security on Chromium-based browsers.)
7272
-D enable-ws (Enable Web Security on Chromium-based browsers.)
7373
-D enable-sync (Enable "Chrome Sync".)
74-
-D use-auto-ext (Use Chrome's automation extension.)
7574
-D uc | -D undetected (Use undetected-chromedriver to evade bot-detection)
76-
-D uc-sub | -D uc-subprocess (Use undetected-chromedriver as a subprocess)
77-
-D remote-debug (Enable Chrome's Remote Debugger on http://localhost:9222)
75+
-D remote-debug (Sync to Chrome Remote Debugger chrome://inspect/#devices)
7876
-D dashboard (Enable the SeleniumBase Dashboard. Saved at: dashboard.html)
7977
-D dash-title=STRING (Set the title shown for the generated dashboard.)
8078
-D enable-3d-apis (Enables WebGL and 3D APIs.)

seleniumbase/console_scripts/ReadMe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ that are available when using SeleniumBase.
120120
--crumbs (Clear all cookies between tests reusing a session.)
121121
--maximize (Start tests with the web browser window maximized.)
122122
--dashboard (Enable SeleniumBase\'s Dashboard at dashboard.html)
123+
--uc (Enable undetected-chromedriver to evade bot-detection.)
123124
--incognito (Enable Chromium\'s Incognito mode.)
124125
--guest (Enable Chromium\'s Guest mode.)
125126
-m=MARKER (Run tests with the specified pytest marker.)
@@ -136,6 +137,7 @@ that are available when using SeleniumBase.
136137
| return / r: Run until method returns. j: Jump to line. |
137138
| where / w: Show stack spot. u: Up stack. d: Down stack. |
138139
| longlist / ll: See code. dir(): List namespace objects. |
140+
--final-debug (Enter Final Debug Mode after each test ends.)
139141
--recorder (Record browser actions to generate test scripts.)
140142
--save-screenshot (Save a screenshot at the end of each test.)
141143
--archive-logs (Archive old log files instead of deleting them.)
@@ -149,6 +151,7 @@ that are available when using SeleniumBase.
149151
--env=ENV (Set the test env. Access with "self.env" in tests.)
150152
--data=DATA (Extra test data. Access with "self.data" in tests.)
151153
--disable-csp (Disable the Content Security Policy of websites.)
154+
--remote-debug (Sync to Ch-R-Debugger chrome://inspect/#devices)
152155
--server=SERVER (The Selenium Grid server/IP used for tests.)
153156
--port=PORT (The Selenium Grid port used by the test server.)
154157
--proxy=SERVER:PORT (Connect to a proxy server:port for tests.)
@@ -179,6 +182,7 @@ that are available when using SeleniumBase.
179182
-D crumbs (Clear all cookies between tests reusing a session.)
180183
-D maximize (Start tests with the web browser window maximized.)
181184
-D dashboard (Enable SeleniumBase\'s Dashboard at dashboard.html)
185+
-D uc (Enable undetected-chromedriver to evade bot-detection.)
182186
-D incognito (Enable Chromium\'s Incognito mode.)
183187
-D guest (Enable Chromium\'s Guest mode.)
184188
--no-snippets / -q (Quiet mode. Don\'t print snippets.)
@@ -203,6 +207,7 @@ that are available when using SeleniumBase.
203207
-D env=ENV (Set the test env. Access with "self.env" in tests.)
204208
-D data=DATA (Extra test data. Access with "self.data" in tests.)
205209
-D disable-csp (Disable the Content Security Policy of websites.)
210+
-D remote-debug (Sync to Ch-R-Debugger chrome://inspect/#devices)
206211
-D server=SERVER (The Selenium Grid server/IP used for tests.)
207212
-D port=PORT (The Selenium Grid port used by the test server.)
208213
-D proxy=SERVER:PORT (Connect to a proxy server:port for tests.)

seleniumbase/console_scripts/run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
sbase options
1212
sbase commander
1313
sbase behave-gui
14+
sbase behave-options
1415
sbase caseplans
1516
sbase mkdir ui_tests
1617
sbase mkfile new_test.py

seleniumbase/plugins/pytest_plugin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ def pytest_addoption(parser):
8989
--disable-ws (Disable Web Security on Chromium-based browsers.)
9090
--enable-ws (Enable Web Security on Chromium-based browsers.)
9191
--enable-sync (Enable "Chrome Sync" on websites.)
92-
--use-auto-ext (Use Chrome's automation extension.)
9392
--uc | --undetected (Use undetected-chromedriver to evade bot-detection.)
94-
--uc-sub | --uc-subprocess (Use undetected-chromedriver as a subprocess.)
95-
--remote-debug (Enable Chrome's Remote Debugger on http://localhost:9222)
93+
--remote-debug (Sync to Chrome Remote Debugger chrome://inspect/#devices)
9694
--final-debug (Enter Debug Mode after each test ends. Don't use with CI!)
9795
--dashboard (Enable the SeleniumBase Dashboard. Saved at: dashboard.html)
9896
--dash-title=STRING (Set the title shown for the generated dashboard.)

seleniumbase/plugins/selenium_plugin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@ class SeleniumBrowser(Plugin):
7171
--disable-ws (Disable Web Security on Chromium-based browsers.)
7272
--enable-ws (Enable Web Security on Chromium-based browsers.)
7373
--enable-sync (Enable "Chrome Sync" on websites.)
74-
--use-auto-ext (Use Chrome's automation extension.)
7574
--uc | --undetected (Use undetected-chromedriver to evade bot-detection.)
76-
--uc-sub | --uc-subprocess (Use undetected-chromedriver as a subprocess.)
77-
--remote-debug (Enable Chrome's Remote Debugger on http://localhost:9222)
75+
--remote-debug (Sync to Chrome Remote Debugger chrome://inspect/#devices)
7876
--final-debug (Enter Debug Mode after each test ends. Don't use with CI!)
7977
--enable-3d-apis (Enables WebGL and 3D APIs.)
8078
--swiftshader (Use Chrome's "--use-gl=swiftshader" feature.)

0 commit comments

Comments
 (0)