()
| 48 | |
| 49 | |
| 50 | def show_basic_usage(): |
| 51 | from seleniumbase.console_scripts import logo_helper |
| 52 | |
| 53 | seleniumbase_logo = logo_helper.get_seleniumbase_logo() |
| 54 | print(seleniumbase_logo) |
| 55 | time.sleep(0.044) |
| 56 | print("") |
| 57 | time.sleep(0.034) |
| 58 | show_package_location() |
| 59 | time.sleep(0.034) |
| 60 | show_version_info() |
| 61 | time.sleep(0.034) |
| 62 | print("") |
| 63 | time.sleep(0.468) # Enough time to see the logo & version |
| 64 | sc = "" |
| 65 | sc += "╭──────────────────────────────────────────────────╮\n" |
| 66 | sc += '│ * USAGE: "seleniumbase [COMMAND] [PARAMETERS]" │\n' |
| 67 | sc += '│ * OR: "sbase [COMMAND] [PARAMETERS]" │\n' |
| 68 | sc += "│ │\n" |
| 69 | sc += "│ COMMANDS: PARAMETERS / DESCRIPTIONS: │\n" |
| 70 | sc += "│ get / install [DRIVER_NAME] [OPTIONS] │\n" |
| 71 | sc += "│ methods (List common Python methods) │\n" |
| 72 | sc += "│ options (List common pytest options) │\n" |
| 73 | sc += "│ behave-options (List common behave options) │\n" |
| 74 | sc += "│ gui / commander [OPTIONAL PATH or TEST FILE] │\n" |
| 75 | sc += "│ behave-gui (SBase Commander for Behave) │\n" |
| 76 | sc += "│ caseplans [OPTIONAL PATH or TEST FILE] │\n" |
| 77 | sc += "│ mkdir [DIRECTORY] [OPTIONS] │\n" |
| 78 | sc += "│ mkfile [FILE.py] [OPTIONS] │\n" |
| 79 | sc += "│ mkrec / codegen [FILE.py] [OPTIONS] │\n" |
| 80 | sc += "│ recorder (Open Recorder Desktop App.) │\n" |
| 81 | sc += "│ record (If args: mkrec. Else: App.) │\n" |
| 82 | sc += "│ mkpres [FILE.py] [LANG] │\n" |
| 83 | sc += "│ mkchart [FILE.py] [LANG] │\n" |
| 84 | sc += "│ print [FILE] [OPTIONS] │\n" |
| 85 | sc += "│ translate [SB_FILE.py] [LANG] [ACTION] │\n" |
| 86 | sc += "│ convert [WEBDRIVER_UNITTEST_FILE.py] │\n" |
| 87 | sc += "│ extract-objects [SB_FILE.py] │\n" |
| 88 | sc += "│ inject-objects [SB_FILE.py] [OPTIONS] │\n" |
| 89 | sc += "│ objectify [SB_FILE.py] [OPTIONS] │\n" |
| 90 | sc += "│ revert-objects [SB_FILE.py] [OPTIONS] │\n" |
| 91 | sc += "│ encrypt / obfuscate │\n" |
| 92 | sc += "│ decrypt / unobfuscate │\n" |
| 93 | sc += "│ proxy (Start a basic proxy server) │\n" |
| 94 | sc += "│ download server (Get Selenium Grid JAR file) │\n" |
| 95 | sc += "│ grid-hub [start|stop] [OPTIONS] │\n" |
| 96 | sc += "│ grid-node [start|stop] --hub=[HOST/IP] │\n" |
| 97 | sc += "│ │\n" |
| 98 | sc += '│ * EXAMPLE => "sbase get chromedriver stable" │\n' |
| 99 | sc += '│ * For command info => "sbase help [COMMAND]" │\n' |
| 100 | sc += '│ * For info on all commands => "sbase --help" │\n' |
| 101 | sc += "╰──────────────────────────────────────────────────╯" |
| 102 | sc += "" |
| 103 | bordered_sc = sc |
| 104 | if "linux" not in sys.platform: |
| 105 | c1 = colorama.Fore.BLUE + colorama.Back.LIGHTCYAN_EX |
| 106 | c2 = colorama.Fore.BLUE + colorama.Back.LIGHTGREEN_EX |
| 107 | c3 = colorama.Fore.BLUE + colorama.Back.LIGHTYELLOW_EX |
no test coverage detected
searching dependent graphs…