6.RPA Challenge - Retrieve items from a combobox

uiautomation

#1

Retrieve all items from this combobox:

https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select


Get all items of a list box
How to dynamically select a value from dropdown using 'Select Item' activity?
Select particular line in List Box with dynamic list items
Select Item activity
Automation Challenge Winners
How to read the items in listBox in windows application form and store them in datatable?
Search a array of texts in web page
Issue extracting data from combo box in Java thick client application
How to choose an item in a list
How to select second element from <LI> list?
Autocomplete text issue
How to get names from the Find Children activity
#2

Hi @badita,

I had a try Please look at this
test2.xaml (5.2 KB)

Updated Code:
test2.xaml (13.5 KB)

Thanks,
Vikas


#3

Hey @badita

Please review the attached solution. :slight_smile: and let me know :slight_smile:

RPA Challenge-6.xaml (9.1 KB)

//Close browser added :slight_smile: and count and selected item
RPA Challenge-6.xaml (11.0 KB)

Regards…!!
Aksh


Get all items of a list box
How to get names from the Find Children activity
About Uielement
Select Item Activity not working when the string has space
Drop down menu
#4

Ok, but please open the browser first. I don’t have the page opened. :slight_smile: And close it in the end.

Bonus: also get the count of the items and the selected item.


How to select item containing certain text?
#5

Bonus: also get the count of the items and the selected item.


#7

Hi @badita

Please review my solution :slight_smile:
GetComboBoxItems.xaml (9.5 KB)

Regards


Drop down menu with scroll
#8

Hey @badita

Done :slight_smile: was busy :stuck_out_tongue:

Regards…!!
Aksh


#9

Hello!

Follow my solution :slight_smile:

RPA_Challenge6.xaml (9.3 KB)

Updated (Write all single item on output)
RPA_Challenge6_Update.xaml (10.7 KB)

Regards,


#10

Unfortunately I can set only accepted solution per topic so it goes to @aksh1yadav.

Thanks @tomek.pawlicki, @Lucas.Pimenta


#11

I think maybe previous winners should not be allowed to enter for at least one round :smiley:


#12

I think maybe updates should be allowed only on new posts, not edited ones. It’s unfair to be first post and do updates on the same post until get the shot to solution.

Anyway, congratulations to Aksh :slight_smile:


#14

I’m not worried about winning man :smiley: Please, keep your answer as solution. Next time I will be fastest to post the solution first!
Congratulations again for winning! You’re very good in Uipath developing.

Regards!


#15

Hi!

Here’s my solution :sweat_smile:

Retrieve items from a combobox.zip (4.0 KB)

I think that it’s more simple.

What do you think?

Greeting!


#16

hi @aksh1yadav could u please help on the get attribute part.
what is the “items” attribute which you have provided as the input , where did you get it from?

am actually trying to extract the count of items from a combobox so thought ur workflow would be helpful for me to refer to.

thank you :slight_smile:


#17

I’m with @pramilag I don’t get how you geniuses know to use for example get attribute and pass ‘items’ that this is going to give the list of values the combo box holds. Other solutions use the find children activity (I would have looked in the Ui Automation -> Browser for activities to use to extract data from the browser and missed the find children activity in ui Automation -> Element -> find loads of other examples in the other challenges,

How do you guys know this stuff?

Good UiPathing!