Tap Control Key while clicking

Hello,

I’m looking to perform a search on this website: Base de Datos Nacional de Subvenciones

To do this, I need to apply multiple filters in the “Impact region” category. The method to achieve this is by holding down the Control key on my keyboard while clicking on each region individually. Could you please provide guidance on how to simultaneously press the Control key and click?

Thank you in advance!

I Hope You are using modern activity for that we have an option please look at the screen capture below.
In the Key modifier, you have an option called Ctrl.

In classic also the same option

1 Like

in general we would recommend to explore:
https://docs.uipath.com/activities/other/latest/ui-automation/select-multiple-items

when implementing it within single click activities have a look the at the
grafik

1 Like

Sorry, I said that it was solve but still doesn’t work… There are too many items in the list.

I tried use the activitie “Select multiple items” and doesn’t work too… Any suggest?

Thannnk you!!

Hello,

I’m looking to perform a search on this website: Base de Datos Nacional de Subvenciones

To do this, I need to apply multiple filters in the “Impact region” category. The method to achieve this is by holding down the Control key on my keyboard while clicking on each region individually. Could you please provide guidance on how to simultaneously press the Control key and click?

Because there are too many items in the “Impact Region” I don’t want to use the KeyModifier of the “click” activitie (and also didn’t work), so I tried to use the activitie “Select Multiple Items” but the bot didn’t select all the items…

Thank you in advance!

Can you try with Select Multiple Items like this? You need to target the whole Select Item box instead of a single element.

Selector:

<html app='chrome.exe' title='Base de Datos Nacional de Subvenciones' />
<webctrl id='regionalizacion' tag='SELECT' />

Content of MultipleItems:

{"ES - ESPAÑA", "ES11 - GALICIA"}
1 Like

This works but when you put more Items… like 10 or more, doesn’t work.

how was it implemented?

Can you check if you perhaps have a typo in some elements’ name?

If you want to select all the items, you can try the following:

SelectMultiple_Sample.xaml (7.7 KB)

1 Like

This Wooorks!! Thank youuu!

Now, if I only want select the item from España to Tenerife. What can i do? String manipulation ?

1 Like

If you want to select all the items that start with ES (and assuming ESZ shouldn’t be chosen), you can change the previous itemsToSelect assign to the following:

itemsToSelect = options.Select(Function(x) x.Get("innerText").ToString.Trim).Where(Function(x) System.Text.RegularExpressions.Regex.IsMatch(x, "ES\d* -.*")).ToArray

using a regular expression:
image

1 Like

Amazing! Thank you soooo much

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.