Select item from drop down list

I have a dropdown list like

  • All records
  • All Records (ignore maximum records limit)
  • selected records

I have tried to select if All Records (ignore maximum records limit) available then select this otherwise select All records

Any ideas to handle this problem?

Hi @Mangesh_Gholap,

Your problem is not clear.

Have you tried using select item activity?

Hey @Mangesh_Gholap ,
If possible try to do this with the Find children activity.
Initially using find children activity you will get all the children in the dropdown and then using dynamic selector that may be innerText and Table row you can click on the required data based on your condition.

Regards,

1 Like

Hi @Harshith_Adyanthaya
yes, I used select item activity.

my problem is I am trying to extract data from the application. while extracting I have to select one of them but the condition is
if 3 of them are there then select All Records (ignore maximum records limit)
otherwise select All records
dropdownlist

please check SS for a better understanding

currently, bot is selecting by default All records.

Hi @Mangesh_Gholap ,

Can you use get text after selecting a drop-down value and confirm what value the get text variable holds?

Regards,

1 Like

@Mangesh_Gholap ,
I have built a similar workflow for your reference .
You can refer this

DropDown.zip (5.8 KB)

Regards,

1 Like

Okay. Then try using Find Children activity and check its innertext.

1 Like

Hi @Jithesh_R

please check below workflow

no
@vishal.kp

@Mangesh_Gholap ,
Can you Just add a “Click Activity”(Indicate the dropdown) before the “Select Item Activity”
Something like this

image

Regards,

Hi @Mangesh_Gholap ,

Use this method as a last resort:

If you are sure that “All records” will be always present in the dropdown if “All Records (ignore maximum records limit)” does not exists.

  • Use a try catch, in the try use the select item with “All Records (ignore maximum records limit)”
  • In case it errors out in try, in the catch block use the select item with “All records”
    (Keep the time-out minimal)

Regards,

1 Like

Thank you, Guys

1 Like

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