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

Function show_mkfile_usage

seleniumbase/console_scripts/run.py:263–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261
262
263def show_mkfile_usage():
264 c2 = colorama.Fore.BLUE + colorama.Back.LIGHTGREEN_EX
265 c3 = colorama.Fore.BLUE + colorama.Back.LIGHTYELLOW_EX
266 cr = colorama.Style.RESET_ALL
267 sc = " " + c2 + "** " + c3 + "mkfile" + c2 + " **" + cr
268 print(sc)
269 print("")
270 print(" Usage:")
271 print(" seleniumbase mkfile [FILE.py] [OPTIONS]")
272 print(" OR: sbase mkfile [FILE.py] [OPTIONS]")
273 print(" Example:")
274 print(" sbase mkfile new_test.py")
275 print(" Options:")
276 print(" --uc (UC Mode boilerplate using SB context manager)")
277 print(" -b / --basic (Basic boilerplate / single-line test)")
278 print(" -r / --rec (Adds Pdb+ breakpoint for Recorder Mode)")
279 print(" --url=URL (Makes the test start on a specific page)")
280 print(" Language Options:")
281 print(" --en / --English | --zh / --Chinese")
282 print(" --nl / --Dutch | --fr / --French")
283 print(" --it / --Italian | --ja / --Japanese")
284 print(" --ko / --Korean | --pt / --Portuguese")
285 print(" --ru / --Russian | --es / --Spanish")
286 print(" Syntax Formats:")
287 print(" --bc / --basecase (BaseCase class inheritance)")
288 print(" --pf / --pytest-fixture (sb pytest fixture)")
289 print(" --cf / --class-fixture (class + sb pytest fixture)")
290 print(" --cm / --context-manager (SB context manager)")
291 print(" --dc / --driver-context (DriverContext manager)")
292 print(" --dm / --driver-manager (Driver manager)")
293 print(" Output:")
294 print(" Creates a new SBase test file with boilerplate code.")
295 print(" If the file already exists, an error is raised.")
296 print(" By default, uses English with BaseCase inheritance,")
297 print(" and creates a boilerplate with common SeleniumBase")
298 print(' methods: "goto", "type", "click", "assert_element",')
299 print(' and "assert_text". If using the basic boilerplate')
300 print(' option, only the "goto" method is included. Only the')
301 print(" BaseCase format supports Languages or Recorder Mode.")
302 print(" UC Mode automatically uses English with SB() format.")
303 print("")
304
305
306def show_mkrec_usage():

Callers 2

show_detailed_helpFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…