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.16k stars 958 forks source link

Add UC Mode `driver` methods directly into the `SB` API #2684

Closed mdmintz closed 5 months ago

mdmintz commented 5 months ago

Add UC Mode driver methods directly into the SB API

Currently, they can be accessed like this:

sb.driver.uc_open(url)
sb.driver.uc_open_with_tab(url)
sb.driver.uc_open_with_reconnect(url, reconnect_time=None)
sb.driver.reconnect(timeout)
sb.driver.disconnect()
sb.driver.connect()
sb.driver.uc_click(
    selector, by="css selector",
    timeout=settings.SMALL_TIMEOUT, reconnect_time=None)
sb.driver.uc_switch_to_frame(frame, reconnect_time=None)

After this ticket is complete, this should also work:

sb.uc_open(url)
sb.uc_open_with_tab(url)
sb.uc_open_with_reconnect(url, reconnect_time=None)
sb.reconnect(timeout)
sb.disconnect()
sb.connect()
sb.uc_click(
    selector, by="css selector",
    timeout=settings.SMALL_TIMEOUT, reconnect_time=None)
sb.uc_switch_to_frame(frame, reconnect_time=None)
mdmintz commented 5 months ago

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