Hi Guys,
I wanted to extract the list of Names and their related data, from the drop down.
i m using the GEt attribute property, but i’m failing .
could you please help me out.
ppr
(Peter Preuss)
September 17, 2021, 7:54pm
2
if possible please share the url with the drop down
dropdown boxes can be of different types (Web)
select option
input, datalist
Web Frameworks
so it is also importnt of which type the drop down is (just analyse it within the UiExplorer)
Once we do know then we can work out the matching strategy
For extracting the values of a common drop down (Select option) we can use find children activity
@ajeffers
Find this demo game here:
ajeffers.xaml (11.3 KB)
opens a page with a states dropdown
find children to all state names
display an input with select list which has all state names in upper case
searches for the user input in the childrenlist (Outcome from find children) for the selected state
here it cannot search directly for upper case name and has to bring the state name to upper case for the compair
found single children’s text info is used for select item
so instead of uppe…
@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='<option value=""> »' />
<webctrl tag='SELECT' />
the last part poining to the selcet element is the most important portion
Filter:
"<w…
@Santa_Krish
I had a look on your XAML. As far as the implemented steps are derivable you were a little but mis/unusing the find children activity and it has a look that different approaches were mixed up.
As the currency selection is used two times the mapping dictionary approach is one of many other possible solutions:
[grafik]
find all selectitems with find children (Selector indicated to DropDown, Filter configured to SelectItems)
iterate over all retrieved options
get SelectItem Text…
as just a few examples
Hi
We can get the inner values with The find children activity which 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” or “innerText”
Here you go with an xaml
Cheers @Syed_Shahbaz_Ali