Find Children Error in "extracting drop down values"

I am encountering this particular issue while I was trying to test an activity to extract dropdown using find children and get attribute to convert the ui element to string. I would like to attach the image of what I am trying to do and the error for your ref.

Error msg : The following errors were encountered while processing the workflow tree:
‘VisualBasicValue’: Compiler error(s) encountered processing expression “currentUiElement”.(2) : error BC30451: ‘currentUiElement’ is not declared. It may be inaccessible due to its protection level.

Did you set the Find Children to descendants? What filter did you configure in the Find Children? Did you put the Dropdown variable into the output property of the Find Children? The error is because Dropdown “is nothing.” Also, you can’t just .ToString a UI element. And you wouldn’t put that into the Attribute property anyway. Element attributes are a set of certain possible values like aaname, innertext, etc.

@Manoj_sreekanth,

Check the variable name of the iterating item in For Each UI element activity from its properties.

I have set the find children to descendants. i did configure any filter condition. i have put the variable into output property. As you mention, i did find there are no elements that are being captured. what other options can help me here?

thanks

right variable is taken

@Manoj_sreekanth,

Ok I noticed the issue. You are passing currentUiElement as attribute. Pass the currentUiElement as Input element of Get attribute activity and select a suitable attribute for the element like, text, title etc.

@Manoj_sreekanth

  1. Ideally you dont need find children to get dropdown values
  2. Is select item not working?
  3. If no then perform a click on the dropdown and use get attribute and get the items to get all the values indicating the full dropdown instead of one single value

Cheers

i have corrected as you said, still i find there are no values after verified

select item dont seem to work here
let me try the 3rd step and get back to you.

i have shared the link here with you.

can you kindly check from your end if you can extract the “From” section where you can see all the countries from dropdown

i have shared the link here with you.

can you kindly check from your end if you can extract the “From” section where you can see all the countries from dropdown

i would like to share the link here with you:

can you kindly check from your end if you can extract the “From” section where you can see all the countries from dropdown which is what i am tryna do.

thanks

@Manoj_sreekanth

I hope this helps

result variable is of type string array

cheers

You have to indicate the pulldown as the element for the activity then use the filter to control which descendants are put into the output array ie <webctrl tag='OPTION' />