@@ -443,14 +443,14 @@ def show_options():
443
443
c2 = colorama .Fore .BLUE + colorama .Back .LIGHTGREEN_EX
444
444
c3 = colorama .Fore .BLUE + colorama .Back .LIGHTYELLOW_EX
445
445
cr = colorama .Style .RESET_ALL
446
- sc = ("\n " + c2 + "** " + c3 + "pytest cmd options " + c2 + " **" + cr )
446
+ sc = ("\n " + c2 + " ** " + c3 + " pytest CMD Options " + c2 + " ** " + cr )
447
447
print (sc )
448
448
print ("" )
449
449
line = "Here are some common pytest options to use with SeleniumBase:"
450
450
line = c1 + line + cr
451
451
print (line )
452
452
print ("" )
453
- print ('--browser=BROWSER (The web browser to use. Default: "chrome")' )
453
+ print ('--browser=BROWSER (The web browser to use. Default: "chrome". )' )
454
454
print ('--headless (Run tests headlessly. Default mode on Linux OS.)' )
455
455
print ('--demo (Slow down and visually see test actions as they occur.)' )
456
456
print ('--slow (Slow down the automation. Faster than using Demo Mode.)' )
@@ -461,27 +461,35 @@ def show_options():
461
461
print ("--guest (Enable Chrome's Guest mode.)" )
462
462
print ('-m MARKER (Run tests with the specified pytest marker.)' )
463
463
print ('-n NUM (Multithread the tests using that many threads.)' )
464
- print ('-v (Verbose mode. Print the full name of each test run.)' )
465
- print ('--check-js (Check for JavaScript errors after page loads.)' )
464
+ print ('-v (Verbose mode. Prints the full names of each test run.)' )
466
465
print ('--html=report.html (Create a detailed pytest-html report.)' )
466
+ print ('--collect-only / --co (Only show discovered tests. No run.)' )
467
+ print ('--co -q (Only show full names of discovered tests. No run.)' )
468
+ print ('--trace (Enter Debug Mode immediately after starting any test.' )
469
+ print (' n: Next line of method. s: Step through. c: Continue.)' )
470
+ print ('--pdb (Enter Debug Mode if a test fails. h: Help. c: Continue.' )
471
+ print (' where: Stacktrace location. u: Up stack. d: Down stack.' )
472
+ print (' longlist: Stack code. dir(): List objects in namespace.)' )
473
+ print ('-x (Stop running the tests after the first failure is reached.)' )
474
+ print ('--archive-logs (Archive old log files instead of deleting them.)' )
475
+ print ('--save-screenshot (Save a screenshot at the end of each test.)' )
476
+ print ('--check-js (Check for JavaScript errors after page loads.)' )
477
+ print ('--start-page=URL (The browser start page when tests begin.)' )
467
478
print ("--agent=STRING (Modify the web browser's User-Agent string.)" )
468
479
print ('--mobile (Use the mobile device emulator while running tests.)' )
469
480
print ('--metrics=STRING (Set mobile "CSSWidth,CSSHeight,PixelRatio".)' )
470
481
print ('--ad-block (Block some types of display ads after page loads.)' )
471
- print ('--pdb (Enter Debug Mode if a test fails. h: Help. c: Continue.' )
472
- print (' interact: Interactive Mode. CTRL-D: Exit Interactive Mode.)' )
473
- print ('--archive-logs (Archive old log files instead of deleting them.)' )
474
- print ('--disable-csp (Disable the Content Security Policy of websites.)' )
475
- print ('--save-screenshot (Save a screenshot at the end of each test.)' )
476
- print ('--proxy=SERVER:PORT (Set a proxy server:port combo for tests.)' )
477
- print ("--settings-file=FILE (Override default SeleniumBase settings.)" )
482
+ print ('--settings-file=FILE (Override default SeleniumBase settings.)' )
478
483
print ('--env=ENV (Set the test env. Access with "self.env" in tests.)' )
479
484
print ('--data=DATA (Extra test data. Access with "self.data" in tests.)' )
480
- print ('--collect-only -q (Show discovered tests without running them.)' )
481
- print ('-x (Stop running tests after the first failure is reached.)' )
485
+ print ('--disable-csp (Disable the Content Security Policy of websites.)' )
486
+ print ('--server=SERVER (The Selenium Grid server/IP used for tests.)' )
487
+ print ('--port=PORT (The Selenium Grid port used by the test server.)' )
488
+ print ('--proxy=SERVER:PORT (Connect to a proxy server:port for tests.)' )
489
+ print ('--proxy=USER:PASS@SERVER:PORT (Use authenticated proxy server.)' )
482
490
print ("" )
483
- line = 'For the full list of ' + c1 + 'command-line options' + cr
484
- line += ', type: "' + c2 + 'pytest' + cr + ' ' + c3 + '--help' + cr + '".'
491
+ line = 'For the full list of ' + c2 + 'command-line options' + cr
492
+ line += ', type: "' + c1 + 'pytest' + cr + ' ' + c3 + '--help' + cr + '".'
485
493
print (line )
486
494
print ("" )
487
495
0 commit comments