seleniumbase / SeleniumBase

📊 Blazing fast Python framework for web crawling, scraping, testing, and reporting. Supports pytest. Stealth abilities: UC Mode and CDP Mode.
https://seleniumbase.io
MIT License
5.43k stars 982 forks source link

Add a full range of scroll methods for CDP Mode #3266

Closed mdmintz closed 1 week ago

mdmintz commented 1 week ago

Add a full range of scroll methods for CDP Mode


Once this task is completed, we should expect to see all these methods:

sb.cdp.scroll_into_view(selector)    # Scroll to the element
sb.cdp.scroll_to_y(y)    # Scroll to the y-position
sb.cdp.scroll_to_top()    # Scroll to the top
sb.cdp.scroll_to_bottom()    # Scroll to the bottom
sb.cdp.scroll_up(amount=25)    # Relative scroll by amount
sb.cdp.scroll_down(amount=25)    # Relative scroll by amount
mdmintz commented 1 week ago

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