How to test a selectbox from streamlit #3845
Answered by mdmintz
AlejandroAcebo asked this question in Q&A
-
| Hi everyone, im doing a summary of tests for an app with the interface made with streamlit and i dont know how can i select an option for a selectbox. If anyone can help, thanks! |
Beta Was this translation helpful? Give feedback.
Answered by mdmintz Jun 25, 2025
Replies: 1 comment
-
| There are various methods for SeleniumBase/examples/raw_robot.py Line 11 in b1a1ba7 SeleniumBase/examples/test_demo_site.py Line 51 in b1a1ba7 SeleniumBase/examples/test_swag_labs.py Line 26 in b1a1ba7 Related methods: self.select_option_by_text(dropdown_selector, option) self.select_option_by_index(dropdown_selector, option) self.select_option_by_value(dropdown_selector, option) self.get_select_options(dropdown_selector, attribute="text") |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
There are various methods for
<select>boxes, such assb.select_option_by_text(dropdown_selector, option). Eg:SeleniumBase/examples/raw_robot.py
Line 11 in b1a1ba7
SeleniumBase/examples/test_demo_site.py
Line 51 in b1a1ba7
SeleniumBase/examples/test_swag_labs.py
Line 26 in b1a1ba7
Related methods: