seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
4.46k stars 909 forks source link

Interrupting the recorder from outside the terminal #2753

Closed Roboflex30 closed 1 month ago

Roboflex30 commented 1 month ago

Hi @mdmintz, I am creating a product using Seleniumbase library to record and playback my browser actions. The only problem I am facing is that after I run the command sbase mkrec my_project.py --url=wikipedia.org and it starts the recorder, the only way to stop is to type 'c' and press "Enter" in the command line. Once I start the recording at the user end, the user cannot go to the terminal to press 'c' and hit 'enter' as the users don't have the access to the terminal. So I want to kill/interrupt/add breakpoint from outside the terminal either by hitting a shortcut key or calling another script, or I can make changes to the installed seleniumbase script through the python package. Please enlighten me with the solution as it has become a bottleneck in the project.

mdmintz commented 1 month ago

Duplicate of https://github.com/seleniumbase/SeleniumBase/issues/1075#issuecomment-971744681