Select item from drop down with the name

use uiexplorere and select teh dropdown icon and paste the screen shot of selectors from uiexplorer

but this item can be
Primary Insured cb
Primary Insured dl
Primary Insured ij
Primary Insured lo
in this case it will work…?

yes,if you exact string value!

using uiexplorer I got this selector as mention in attachment

mention

can you give us browser link?

yes but this will not open because this open on server

1 Like

you can’t open this

@Aditya10989

Understanding from your Posts is that in a dropdown you will get a selectitem starting with Primary Insured but in variations within the following parts.

Using select Item and assigning a specific value has the issue, that the actual Variation of primary insured **** is Not known

Some members Reporter that Wildcard * we’re working for them within the select Item Activity. So give a try on this and use Primary Insured* dir value that has to be selected.

If this fails you have the Option to use find children, configured to retrieve all Listitems, looking which Variation of primary insured is present and can use this specific value for the selection

thanks for reply what I need to add in this selector
title =’ Primary Insured-
and this is my selector

Please use the Code Format Option from Editor, otherwise cannot See it

1 Like

ok mention selector in attachment

As written in some Posts. The selectitem Activity works in this was. The selector ist pointing to the combox/dropdown. The available Options/selectitems will be offered, once correct configured. Here you can select one Item or you assign the selectitem value as String.

More clear so far

sorry did’t understand

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

3 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