Skip to content

Record without ipdb #1075

Closed
Closed
@elsheikh21

Description

@elsheikh21

I would like to record user web actions using sbase mkrec recording.py --url=http://google.com . I want some help with the following

  1. when the user closes the browser, the recording is saved.
  2. I want to remove import ipdb; ipdb.set_trace() or automatically enter c 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionSomeone is looking for answers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions