Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FT] ControlDropdown, can't obtain all text or value options as list to search on them #285

Open
2 tasks
netzulo opened this issue Jun 2, 2019 · 0 comments
Labels
Awaiting-Triage Pending of be labeled from a Collaborator Feature New functionality proposal TODO

Comments

@netzulo
Copy link
Owner

netzulo commented Jun 2, 2019

Behaviour obtained

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

def dropdown_options(ctl_dd)
    """Gets the values of the options in a dropdown of possible SOs"""
        options_txt = []
        if not isinstance(ctl_dd, ControlDropdown):
           raise Exception("Not dropdown valid class")
        for opt in ctl_dd.dropdown.options:
            options_txt.append(opt.text)
        return options_txt
@netzulo netzulo added Feature New functionality proposal Testcase labels Jun 2, 2019
@netzulo netzulo self-assigned this Jun 2, 2019
@netzulo netzulo added Awaiting-Triage Pending of be labeled from a Collaborator TODO and removed Testcase labels Feb 9, 2020
@netzulo netzulo removed their assignment Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting-Triage Pending of be labeled from a Collaborator Feature New functionality proposal TODO
Projects
None yet
Development

No branches or pull requests

1 participant