How to validate the list of choices under the drop down button

How to validate the list of choices under the drop down screen

so there is an drop down button is there we are clicking on it so we can able to see different account numbers i want validate the how many account numbers is there under drop down and the validate the each account number by getting those details , is there any method is available for doing the above scenarios

Kindly help me

@chandolusathi.kumar

You can use find children activity to get all the items from the drop down.

The find children activity returns an ienumerable list, which you can iterate using a for loop and get its name using a get attribute activity and mention the attribute property as “aaname”

Hope this helps

Cheers

Hi @Anil_G could you please tell me the logic for “For loop” how to iterate, for each account number and the list is not constant it will may varies, so i am requesting you to please help me to build the logic for iteration

@chandolusathi.kumar

If you get the children…it is a collection or ui element…

In for loop give the output of get children/find children activity

Then isdie loop use ui element to identify each row

Cheers

i just tried your method but i am doing in the mobile automation in MDM so, i am unable to find the proper selectors it is accepting the web only, kindly help me to get the list by suggesting the some other method

@chandolusathi.kumar

Try identifying the … line item…Then you can use regex in selector incombination with idx in the selector to move through

cheers

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