MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / invalid_run_command

Function invalid_run_command

seleniumbase/console_scripts/sb_mkrec.py:38–62  ·  view source on GitHub ↗
(msg=None)

Source from the content-addressed store, hash-verified

36
37
38def invalid_run_command(msg=None):
39 exp = " ** mkrec / record / codegen **\n\n"
40 exp += " Usage:\n"
41 exp += " seleniumbase mkrec [FILE.py]\n"
42 exp += " OR: sbase mkrec [FILE.py]\n"
43 exp += " Examples:\n"
44 exp += " sbase mkrec new_test.py\n"
45 exp += " sbase mkrec new_test.py --url=wikipedia.org\n"
46 exp += " Options:\n"
47 exp += " --url=URL (Sets the initial start page URL.)\n"
48 exp += " --edge (Use Edge browser instead of Chrome.)\n"
49 exp += " --gui / --headed (Use headed mode on Linux.)\n"
50 exp += " --uc / --undetected (Use undetectable mode.)\n"
51 exp += " --overwrite (Overwrite file when it exists.)\n"
52 exp += " --behave (Also output Behave/Gherkin files.)\n"
53 exp += " Output:\n"
54 exp += " Creates a new SeleniumBase test using the Recorder.\n"
55 exp += " If the filename already exists, an error is raised.\n"
56 if not msg:
57 raise Exception("INVALID RUN COMMAND!\n\n%s" % exp)
58 elif msg == "help":
59 print("\n%s" % exp)
60 sys.exit()
61 else:
62 raise Exception("INVALID RUN COMMAND!\n\n%s\n%s\n" % (exp, msg))
63
64
65def set_colors(use_colors):

Callers 2

mainFunction · 0.70
sb_mkrec.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…