Skip to content

Commit 48e41d5

Browse files
committed
Refactor console scripts
1 parent 7238659 commit 48e41d5

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

seleniumbase/console_scripts/ReadMe.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,14 @@ that are available when using SeleniumBase.
117117
--headless (Run tests headlessly. Default mode on Linux OS.)
118118
--demo (Slow down and visually see test actions as they occur.)
119119
--slow (Slow down the automation. Faster than using Demo Mode.)
120-
--reuse-session / --rs (Reuse browser session between tests.)
120+
--rs / --reuse-session (Reuse browser session between tests.)
121121
--crumbs (Clear all cookies between tests reusing a session.)
122122
--maximize (Start tests with the web browser window maximized.)
123123
--dashboard (Enable SeleniumBase\'s Dashboard at dashboard.html)
124-
--uc (Enable undetected-chromedriver to evade bot-detection.)
125124
--incognito (Enable Chromium\'s Incognito mode.)
126-
--guest (Enable Chromium\'s Guest mode.)
125+
--guest (Enable Chromium\'s Guest Mode.)
126+
--dark (Enable Chromium\'s Dark Mode.)
127+
--uc (Use undetected-chromedriver to evade detection.)
127128
-m=MARKER (Run tests with the specified pytest marker.)
128129
-n=NUM (Multithread the tests using that many threads.)
129130
-v (Verbose mode. Print the full names of each test run.)
@@ -142,6 +143,7 @@ that are available when using SeleniumBase.
142143
--final-debug (Enter Final Debug Mode after each test ends.)
143144
--recorder / --rec (Save browser actions as Python scripts.)
144145
--rec-behave / --rec-gherkin (Save actions as Gherkin code.)
146+
--rec-print (Display recorded scripts when they are created.)
145147
--save-screenshot (Save a screenshot at the end of each test.)
146148
--archive-logs (Archive old log files instead of deleting them.)
147149
--check-js (Check for JavaScript errors after page loads.)
@@ -185,9 +187,10 @@ that are available when using SeleniumBase.
185187
-D crumbs (Clear all cookies between tests reusing a session.)
186188
-D maximize (Start tests with the web browser window maximized.)
187189
-D dashboard (Enable SeleniumBase\'s Dashboard at dashboard.html)
188-
-D uc (Enable undetected-chromedriver to evade bot-detection.)
189-
-D incognito (Enable Chromium\'s Incognito mode.)
190-
-D guest (Enable Chromium\'s Guest mode.)
190+
-D incognito (Enable Chromium\'s Incognito Mode.)
191+
-D guest (Enable Chromium\'s Guest Mode.)
192+
-D dark (Enable Chromium\'s Dark Mode.)
193+
-D uc (Use undetected-chromedriver to evade detection.)
191194
--no-snippets / -q (Quiet mode. Don\'t print snippets.)
192195
--dry-run / -d (Dry run. Only show discovered tests.)
193196
--stop (Stop running tests after the first failure is reached.)
@@ -198,6 +201,7 @@ that are available when using SeleniumBase.
198201
| where / w: Show stack spot. u: Up stack. d: Down stack. |
199202
| longlist / ll: See code. dir(): List namespace objects. |
200203
-D recorder (Record browser actions to generate test scripts.)
204+
-D rec-print (Display recorded scripts when they are created.)
201205
-D save-screenshot (Save a screenshot at the end of each test.)
202206
-D archive-logs (Archive old log files instead of deleting them.)
203207
-D check-js (Check for JavaScript errors after page loads.)

seleniumbase/console_scripts/run.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -790,14 +790,15 @@ def show_options():
790790
op += "--headless (Run tests headlessly. Default setting on Linux OS.)\n"
791791
op += "--demo (Slow down and visually see test actions as they occur.)\n"
792792
op += "--slow (Slow down the automation. Faster than using Demo Mode.)\n"
793-
op += "--reuse-session / --rs (Reuse browser session between tests.)\n"
793+
op += "--rs / --reuse-session (Reuse browser session between tests.)\n"
794794
op += "--reuse-class-session / --rcs (RS, but for class tests only.)\n"
795795
op += "--crumbs (Clear all cookies between tests reusing a session.)\n"
796796
op += "--maximize (Start tests with the web browser window maximized.)\n"
797797
op += "--dashboard (Enable SeleniumBase's Dashboard at dashboard.html)\n"
798-
op += "--uc (Use undetected-chromedriver mode to evade bot-detection.)\n"
799-
op += "--incognito (Enable Chromium's Incognito mode.)\n"
800-
op += "--guest (Enable Chromium's Guest mode.)\n"
798+
op += "--incognito (Enable Chromium's Incognito Mode.)\n"
799+
op += "--guest (Enable Chromium's Guest Mode.)\n"
800+
op += "--dark (Enable Chromium's Dark Mode.)\n"
801+
op += "--uc (Use undetected-chromedriver to evade detection.)\n"
801802
op += "-m=MARKER (Run tests with the specified pytest marker.)\n"
802803
op += "-n=NUM (Multithread the tests using that many threads.)\n"
803804
op += "-v (Verbose mode. Print the full names of each test run.)\n"
@@ -816,6 +817,7 @@ def show_options():
816817
op += "--final-debug (Enter Final Debug Mode after each test ends.)\n"
817818
op += "--recorder / --rec (Save browser actions as Python scripts.)\n"
818819
op += "--rec-behave / --rec-gherkin (Save actions as Gherkin code.)\n"
820+
op += "--rec-print (Display recorded scripts when they are created.)\n"
819821
op += "--save-screenshot (Save a screenshot at the end of each test.)\n"
820822
op += "--archive-logs (Archive logs after tests to prevent deletion.)\n"
821823
op += "--check-js (Check for JavaScript errors after page loads.)\n"
@@ -872,9 +874,10 @@ def show_behave_options():
872874
op += "-D crumbs (Clear all cookies between tests reusing a session.)\n"
873875
op += "-D maximize (Start tests with the web browser window maximized.)\n"
874876
op += "-D dashboard (Enable SeleniumBase's Dashboard at dashboard.html)\n"
875-
op += "-D uc (Enable undetected-chromedriver to evade bot-detection.)\n"
876-
op += "-D incognito (Enable Chromium's Incognito mode.)\n"
877-
op += "-D guest (Enable Chromium's Guest mode.)\n"
877+
op += "-D incognito (Enable Chromium's Incognito Mode.)\n"
878+
op += "-D guest (Enable Chromium's Guest Mode.)\n"
879+
op += "-D dark (Enable Chromium's Dark Mode.)\n"
880+
op += "-D uc (Use undetected-chromedriver to evade detection.)\n"
878881
op += "--no-snippets / -q (Quiet mode. Don't print snippets.)\n"
879882
op += "--dry-run / -d (Dry run. Only show discovered tests.)\n"
880883
op += "--stop (Stop running tests after the first failure is reached.)\n"
@@ -885,6 +888,7 @@ def show_behave_options():
885888
op += " | where / w: Show stack spot. u: Up stack. d: Down stack. |\n"
886889
op += " | longlist / ll: See code. dir(): List namespace objects. |\n"
887890
op += "-D recorder (Record browser actions to generate test scripts.)\n"
891+
op += "-D rec-print (Display recorded scripts when they are created.)\n"
888892
op += "-D save-screenshot (Save a screenshot at the end of each test.)\n"
889893
op += "-D archive-logs (Archive log files instead of deleting them.)\n"
890894
op += "-D check-js (Check for JavaScript errors after page loads.)\n"

0 commit comments

Comments
 (0)