Forum Discussion

endorium's avatar
endorium
Frequent Contributor
6 years ago

Help with clicking an angular web combobox

Have a new application with a custom drop down box. I need a function to select the combobox and then select one of the options I give.

Obviously selecting the combobox is easy, selecting the item within it is proving difficult.

The options can only be identified by the text. For instance 'option1' or 'option2'.

 

Any ideas on the function that can do this or how it can work? Below is HTML. 6 options for this dropdown. The text for each option is within the "st-forms-select-option" highlighted.

 

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    > angular web 

    Welcome to the club! :)
    Testability is the thing that was the least considered (if ever considered at all) when they created angular and react libraries.

    TestComplete 12.60 added some support to improve the identification of web controls generated by the web applications created using the mentioned libraries. See documentation for the custom attributes of web objects (https://support.smartbear.com/testcomplete/docs/app-testing/web/general/object-identification/using-custom-attributes.html) for more details.

    Generally speaking, you should use all your imagination and good working relations with developers to find and/or work out a way of how to identify this or that web element for angular and react.