How to test a selectbox from streamlit #3845
-
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.
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.
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: