You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At ControlDropdown class, can't obtain all text or value options as list to search on them
Behaviour expected
At ControlDropdown class, can obtain all text or value options as list to search on them
Tests
ensures can obtain lists of text for each option tag
ensures can obtain lists of text for each option attribute value
Notes
Maybe this snippet can help to resolve
defdropdown_options(ctl_dd)
"""Gets the values of the options in a dropdown of possible SOs"""options_txt= []
ifnotisinstance(ctl_dd, ControlDropdown):
raiseException("Not dropdown valid class")
foroptinctl_dd.dropdown.options:
options_txt.append(opt.text)
returnoptions_txt
The text was updated successfully, but these errors were encountered:
Behaviour obtained
At
ControlDropdown
class, can't obtain all text or value options as list to search on themBehaviour expected
At
ControlDropdown
class, can obtain all text or value options as list to search on themTests
Notes
Maybe this snippet can help to resolve
The text was updated successfully, but these errors were encountered: