7
7
8
8
Examples:
9
9
sbase install chromedriver
10
- sbase mkdir browser_tests
10
+ sbase mkdir ui_tests
11
11
sbase mkfile new_test.py
12
12
sbase options
13
- sbase convert old_webdriver_unittest .py
13
+ sbase convert webdriver_unittest_file .py
14
14
sbase print my_first_test.py -n
15
15
sbase translate my_first_test.py --zh -p
16
16
sbase extract-objects my_first_test.py
@@ -60,22 +60,22 @@ def show_basic_usage():
60
60
sc += (' * OR: "sbase [COMMAND] [PARAMETERS]"\n ' )
61
61
sc += ("\n " )
62
62
sc += ("COMMANDS:\n " )
63
- sc += (" install [DRIVER_NAME ] [OPTIONS]\n " )
64
- sc += (" mkdir [DIRECTORY_NAME ]\n " )
65
- sc += (" mkfile [FILE_NAME .py]\n " )
66
- sc += (" options (display common pytest options)\n " )
67
- sc += (" convert [PYTHON_WEBDRIVER_UNITTEST_FILE ]\n " )
63
+ sc += (" install [DRIVER ] [OPTIONS]\n " )
64
+ sc += (" mkdir [DIRECTORY ]\n " )
65
+ sc += (" mkfile [FILE .py]\n " )
66
+ sc += (" options (List common pytest options)\n " )
67
+ sc += (" convert [WEBDRIVER_UNITTEST_FILE.py ]\n " )
68
68
sc += (" print [FILE] [OPTIONS]\n " )
69
- sc += (" translate [SB_PYTHON_FILE ] [LANGUAGE ] [ACTION]\n " )
70
- sc += (" extract-objects [SB_PYTHON_FILE ]\n " )
71
- sc += (" inject-objects [SB_PYTHON_FILE ] [OPTIONS]\n " )
72
- sc += (" objectify [SB_PYTHON_FILE ] [OPTIONS]\n " )
73
- sc += (" revert-objects [SB_PYTHON_FILE ]\n " )
69
+ sc += (" translate [SB_FILE.py ] [LANG ] [ACTION]\n " )
70
+ sc += (" extract-objects [SB_FILE.py ]\n " )
71
+ sc += (" inject-objects [SB_FILE.py ] [OPTIONS]\n " )
72
+ sc += (" objectify [SB_FILE.py ] [OPTIONS]\n " )
73
+ sc += (" revert-objects [SB_FILE.py ]\n " )
74
74
sc += (" encrypt (OR: obfuscate)\n " )
75
75
sc += (" decrypt (OR: unobfuscate)\n " )
76
76
sc += (" download server (Selenium Server JAR file)\n " )
77
77
sc += (" grid-hub [start|stop] [OPTIONS]\n " )
78
- sc += (" grid-node [start|stop] --hub=[HUB_IP] [OPTIONS ]\n " )
78
+ sc += (" grid-node [start|stop] --hub=[HOST/IP ]\n " )
79
79
sc += (' * (EXAMPLE: "sbase install chromedriver latest") *\n ' )
80
80
sc += ("" )
81
81
if "linux" not in sys .platform :
@@ -150,8 +150,8 @@ def show_mkfile_usage():
150
150
print (sc )
151
151
print ("" )
152
152
print (" Usage:" )
153
- print (" seleniumbase mkfile [FILE_NAME .py]" )
154
- print (" OR: sbase mkfile [FILE_NAME .py]" )
153
+ print (" seleniumbase mkfile [FILE .py]" )
154
+ print (" OR: sbase mkfile [FILE .py]" )
155
155
print (" Example:" )
156
156
print (" sbase mkfile new_test.py" )
157
157
print (" Options:" )
@@ -182,8 +182,8 @@ def show_convert_usage():
182
182
print (sc )
183
183
print ("" )
184
184
print (" Usage:" )
185
- print (" seleniumbase convert [PYTHON_WEBDRIVER_UNITTEST_FILE ]" )
186
- print (" OR: sbase convert [PYTHON_WEBDRIVER_UNITTEST_FILE ]" )
185
+ print (" seleniumbase convert [WEBDRIVER_UNITTEST_FILE.py ]" )
186
+ print (" OR: sbase convert [WEBDRIVER_UNITTEST_FILE.py ]" )
187
187
print (" Output:" )
188
188
print (" Converts a Selenium IDE exported WebDriver unittest" )
189
189
print (" file into a SeleniumBase file. Adds _SB to the new" )
@@ -254,8 +254,8 @@ def show_extract_objects_usage():
254
254
print (sc )
255
255
print ("" )
256
256
print (" Usage:" )
257
- print (" seleniumbase extract-objects [SELENIUMBASE_PYTHON_FILE ]" )
258
- print (" OR: sbase extract-objects [SELENIUMBASE_PYTHON_FILE ]" )
257
+ print (" seleniumbase extract-objects [SB_FILE.py ]" )
258
+ print (" OR: sbase extract-objects [SB_FILE.py ]" )
259
259
print (" Output:" )
260
260
print (" Creates page objects based on selectors found in a" )
261
261
print (" seleniumbase Python file and saves those objects to the" )
@@ -271,8 +271,8 @@ def show_inject_objects_usage():
271
271
print (sc )
272
272
print ("" )
273
273
print (" Usage:" )
274
- print (" seleniumbase inject-objects [SELENIUMBASE_PYTHON_FILE ]" )
275
- print (" OR: sbase inject-objects [SELENIUMBASE_PYTHON_FILE ]" )
274
+ print (" seleniumbase inject-objects [SB_FILE.py ]" )
275
+ print (" OR: sbase inject-objects [SB_FILE.py ]" )
276
276
print (" Options:" )
277
277
print (" -c, --comments (Add object selectors to the comments.)" )
278
278
print (" (Default: No added comments.)" )
@@ -291,8 +291,8 @@ def show_objectify_usage():
291
291
print (sc )
292
292
print ("" )
293
293
print (" Usage:" )
294
- print (" seleniumbase objectify [SELENIUMBASE_PYTHON_FILE ]" )
295
- print (" OR: sbase objectify [SELENIUMBASE_PYTHON_FILE ]" )
294
+ print (" seleniumbase objectify [SB_FILE.py ]" )
295
+ print (" OR: sbase objectify [SB_FILE.py ]" )
296
296
print (" Options:" )
297
297
print (" -c, --comments (Add object selectors to the comments.)" )
298
298
print (" (Default: No added comments.)" )
@@ -314,8 +314,8 @@ def show_revert_objects_usage():
314
314
print (sc )
315
315
print ("" )
316
316
print (" Usage:" )
317
- print (" seleniumbase revert-objects [SELENIUMBASE_PYTHON_FILE ]" )
318
- print (" OR: sbase revert-objects [SELENIUMBASE_PYTHON_FILE ]" )
317
+ print (" seleniumbase revert-objects [SB_FILE.py ]" )
318
+ print (" OR: sbase revert-objects [SB_FILE.py ]" )
319
319
print (" Options:" )
320
320
print (" -c, --comments (Keep existing comments for the lines.)" )
321
321
print (" (Default: No comments are kept.)" )
@@ -415,10 +415,10 @@ def show_grid_node_usage():
415
415
print (" seleniumbase grid-node {start|stop|restart} [OPTIONS]" )
416
416
print (" OR: sbase grid-node {start|stop|restart} [OPTIONS]" )
417
417
print (" Options:" )
418
- print (" --hub=[HUB_IP] (The Grid Hub IP Address to connect to .)" )
419
- print (" (Default: 127.0.0.1 if not set)" )
418
+ print (" --hub=[HOST/IP] (The Grid Hub Hostname / IP Address .)" )
419
+ print (" (Default: 127.0.0.1 if not set. )" )
420
420
print (" -v, --verbose (Increase verbosity of logging output.)" )
421
- print (" (Default: Quiet logging / not verbose.)" )
421
+ print (" (Default: Quiet logging / Not verbose.)" )
422
422
print (" Example:" )
423
423
print (" seleniumbase grid-node start --hub=127.0.0.1" )
424
424
print (" Output:" )
0 commit comments