Select item from drop down with the name

Let me offer a different Form of Support. You are dealing with a Webpage and the dropdown ist a HTML select element, right?

In mY lunchtime i will have a look for providing some Starter to you

1 Like

ok thanks

Hi @Aditya10989,
I think you can make the solution by doing below:
1> do a full text screen scrapping to get all the items available in the dropdown
2>split this output string into stringarray to get individual dropdown items
3> for each string in above array check if string starts with the keyword
4>if it matches then use select item activity and pass item in the properties.

Try and let me know how it worls

@Aditya10989
Interacting with find children:
Lets assume you have drop down like this Link to Dropdown
grafik
grafik

Using find children needs following:

  • 1 configuring the selector to the select element
  • 2 configuring the filter to the options
  • 3 defining an output variable

grafik
grafik

Selector:

<html app='firefox.exe' title='&lt;option value=&quot;&quot;&gt; »' />
<webctrl tag='SELECT' />

the last part poining to the selcet element is the most important portion
Filter:
"<webctrl tag='OPTION' />"

will return us a list with the selectitems (options)
this can be computed / filtered and be used for the dropdown selection:

grafik

Filterstatement used within assign activity
uiLists.Where(Function (x) x.Get(“innertext”).ToString.StartsWith(“Andean”)).First

Using the found UiPAth.Core.UiElement within a select item you can refer to screenshot. Selector of this activity is pointing as well to the dropdown box.

As mentioned above some members reported that selection with wildcard were working at their end. So we can ommit these steps with find children and assign and would doit it like this for “Andean flamingo”
grafik

5 Likes

thanks

Hi,
While giving below value in assign:
“uiLists.Where(Function (x) x.Get(“innertext”).ToString.StartsWith(“Andean”)).First”

The UiPath is showing error that “) is expected”. How to resolve this.

please share a screenshot of validation error and statement. Thanks