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 CDP Mode methods for handling `<input>` Sliders and `<select>` Dropdowns #3264

Closed mdmintz closed 1 week ago

mdmintz commented 1 week ago

Add CDP Mode methods for handling <input> Sliders and <select> Dropdowns


Specifically, I want to handle these:

Screenshot

These methods should be added into the API:

sb.cdp.set_value(selector, text)

sb.cdp.select_option_by_text(dropdown_selector, option)

Eg:

sb.cdp.set_value("input#mySlider", "100")

sb.cdp.select_option_by_text("#mySelect", "Set to 75%")

mdmintz commented 1 week ago

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