Closed
Description
I would like to record user web actions using sbase mkrec recording.py --url=http://google.com
. I want some help with the following
- when the user closes the browser, the recording is saved.
- I want to remove
import ipdb; ipdb.set_trace()
or automatically enterc
in terminal and remove
my script is as follows:
def user_prompt_title(filename, url_str):
url_valid = validate_url(url_str)
if url_valid:
if os.path.exists(filename):
os.remove(filename)
os.system(f"sbase mkrec {file_name} --url={string_}")
desired behavior:
when the above script is run by user input (irrelevant how to this question) when the user closes the browser. The recording is saved as a pytest file normally