-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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.
All reactions
There are various methods for <select>
boxes, such as sb.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:
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...
Replies: 1 comment
-
There are various methods for <select>
boxes, such as sb.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:
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.