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

Function file_name_error

seleniumbase/console_scripts/sb_recorder.py:69–79  ·  view source on GitHub ↗
(file_name)

Source from the content-addressed store, hash-verified

67
68
69def file_name_error(file_name):
70 error_msg = None
71 if not file_name.endswith(".py"):
72 error_msg = 'File name must end with ".py"!'
73 elif "*" in file_name or len(str(file_name)) < 4:
74 error_msg = "Invalid file name!"
75 elif file_name.startswith("-"):
76 error_msg = 'File name cannot start with "-"!'
77 elif "/" in str(file_name) or "\\" in str(file_name):
78 error_msg = "File must be created in the current directory!"
79 return error_msg
80
81
82def do_recording(

Callers 2

do_recordingFunction · 0.85
do_playbackFunction · 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…