()
| 77 | |
| 78 | |
| 79 | def invalid_run_command(): |
| 80 | exp = " ** get / install **\n\n" |
| 81 | exp += "Usage:\n" |
| 82 | exp += " seleniumbase install [DRIVER/BINARY] [OPTIONS]\n" |
| 83 | exp += " OR sbase install [DRIVER/BINARY] [OPTIONS]\n" |
| 84 | exp += " OR seleniumbase get [DRIVER/BINARY] [OPTIONS]\n" |
| 85 | exp += " OR sbase get [DRIVER/BINARY] [OPTIONS]\n" |
| 86 | exp += " (Drivers: chromedriver, uc_driver,\n" |
| 87 | exp += " edgedriver, geckodriver)\n" |
| 88 | exp += " (Binaries: cft, chs, chromium)\n" |
| 89 | exp += "Options:\n" |
| 90 | exp += " VERSION Driver/binary version to download.\n" |
| 91 | exp += " (Otherwise detects the version)\n" |
| 92 | exp += " --revision The Chromium revision to download.\n" |
| 93 | exp += " (Otherwise downloads the latest)\n" |
| 94 | exp += " -p OR --path Also copy driver to /usr/local/bin\n" |
| 95 | exp += "Examples:\n" |
| 96 | exp += " sbase get chromedriver\n" |
| 97 | exp += " sbase get geckodriver\n" |
| 98 | exp += " sbase get edgedriver\n" |
| 99 | exp += " sbase get chromedriver 149\n" |
| 100 | exp += " sbase get chromedriver 149.0.7827.155\n" |
| 101 | exp += " sbase get chromedriver stable\n" |
| 102 | exp += " sbase get chromedriver beta\n" |
| 103 | exp += " sbase get chromedriver -p\n" |
| 104 | exp += " sbase get chromium\n" |
| 105 | exp += " sbase get chromium --revision=1639046\n" |
| 106 | exp += " sbase get cft 149\n" |
| 107 | exp += " sbase get chs\n" |
| 108 | exp += "Output:\n" |
| 109 | exp += " Downloads driver/binary to seleniumbase/drivers/\n" |
| 110 | exp += " (chromedriver is for Selenium Chrome automation)\n" |
| 111 | exp += " (geckodriver is for Selenium Firefox automation)\n" |
| 112 | exp += " (edgedriver is for Selenium MS__Edge automation)\n" |
| 113 | exp += " (cft is for the `Chrome for Testing` binary exe)\n" |
| 114 | exp += " (chs is for the `Chrome-Headless-Shell` binary.)\n" |
| 115 | print("") |
| 116 | raise Exception("%s\n\n%s" % (constants.Warnings.INVALID_RUN_COMMAND, exp)) |
| 117 | |
| 118 | |
| 119 | def make_executable(file_path): |
no outgoing calls
no test coverage detected
searching dependent graphs…