How to check if a multi select dropdown is enabled or disabled and if enabled need to select random option

Hello everyone,

In the application which I work, there are some dropdowns where in some pages there’ll be multiple options in the dropdown and in some pages only single option (by default it is selected & dropdown is disabled). Please help me how to handle this scenario if it is enabled I should click it and select multiple options and if disabled I should skip clicking it.

Thanks & Regards
Kranthi Kumar

There is an activity called select item . U can use that and as input you can pass the item to be selected.

Select item activity will give an error if the drop down is disabled, so if u put it in a try catch and do nothing in the catch block . Try block if the drop down is active it will go on selecting the required item

1 Like

@kranthikumar.rudra

You can to get attribute and check if the dropdown is enabled or disabled …if enabled use select item if supports else use clicks to select the items

Cheers

Thankyou @Anil_G, it worked.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.