Skip to content

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

@netzulo

Description

@netzulo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting-TriagePending of be labeled from a CollaboratorFeatureNew functionality proposalTODO

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions