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
5.17k stars 960 forks source link

Add a stealthier Recorder Mode (UC + Recorder) #3116

Closed mdmintz closed 3 weeks ago

mdmintz commented 3 weeks ago

Add a stealthier Recorder Mode (UC + Recorder)

Make it possible to create recordings in Stealth Mode / UC Mode.

Example:

sbase recorder --uc

(And then create recordings from there.)

Note that special UC Mode methods (such as uc_gui_click_captcha(), etc) will need to be added on afterward.


This will improve on https://github.com/seleniumbase/SeleniumBase/issues/3078, which let you generate a UC Mode boilerplate from the URL provided. Eg:

sbase mkfile bypass_cf.py --uc --url=https://gitlab.com/users/sign_in
from seleniumbase import SB

with SB(uc=True) as sb:
    url = "https://gitlab.com/users/sign_in"
    sb.uc_open_with_reconnect(url, 4)
    sb.uc_gui_click_captcha()
mdmintz commented 3 weeks ago

This was resolved in 4.30.4 - https://github.com/seleniumbase/SeleniumBase/releases/tag/v4.30.4