Mouse scroll and check/uncheck activity not working

Check activity and mouse scroll down activity is not working.
image

Upon running, the item is not checked at “Description” and the mouse scroll activity is not scrolling down to the required element “Group Members (All)”.

I have tried UI framework:

  • Auto
  • Active Accessibility
  • Ui automation

Application scree below:
image

Hi @Moshin_Ali_Khan

What is your case do you want to check multiple items in the list.

Hi @mkankatala

yes, I would like to check multiple items at current point and scroll down to check multiple items.

thanks

Okay @Moshin_Ali_Khan

Here using check/uncheck and mouse scroll is not a good process here.

Check the below steps,
→ Create a List of String datatype variable called List_Items.
→ Store all the values in this variable which you want to check.

- Assign -> List_Items = New List(Of String) from {"Description","Notes","Parent Container"

→ Use for each UI element activity and indicate the one of the exact check box. Then it will automatically extract all the check boxes in that list.
→ In for each UI element window click on add label and indicate the values beside the check box.
→ The output of Foreach UI element is CurrentElement and CurrentLabel_1.
→ Inside for each insert an if condition and give the below condition,

List_Items.any(Function(x) x.toString.equals(CurrentLabel_1.toString))

→ Inside then insert an check/uncheck activity and open the properties panel.
→ Find the Input element field and pass the CurrentElement to it.

The above process will check all the elements with the List_Items if the value exist it will check the option.

Change the List_Items values as per your requirement.

Hope it helps!!

@Moshin_Ali_Khan

  1. Use for each ui element and then use hover and use hover to get to element…and then click if the required value is present
  2. Also are you using simulate ? Sometimes that kight not work
  3. For scroll did you indicate whole dropdown or only yhe scroll bar? Ideally whole dropdown is to be indicated

Cheers

hi @Anil_G ,

this is a windows desktop application. For each Ui element does not work.
the scroll is not from a drop down but a set of checkboxes under a group.

Try using the Extract datatable activity… @Moshin_Ali_Khan

Are you able to extract with it.

@Moshin_Ali_Khan

Even if not a dropdown need to indicate that particular box which contains check boxes

Cheers

@mkankatala sorry not able to extract. infact i’m trying to check the boxes and scroll down and check more boxes.

Then you are better to go with Dynamic selectors… @Moshin_Ali_Khan

As I said first store the select item data in a list of String variable as below,

- Assign -> List_Items = New List(Of String) from {"Description","Notes","Parent Container"

→ Use for each activity to iterate the each item in the List_Items variable. Output of Foreach is CurrentItem.
→ Inside for each insert an assign activity and create a variable called SelectItem and store CurrentItem to it.

- Assign -> SelectItem = CurrentItem.toString

→ after assign activity, insert Check\Uncheck activity and indicate the first check box.
→ When indicating the Elements in the selector options window, check the strict selector and uncheck the Fuzzy, image and Computer vision.
→ Validate the selector and come back to studio and open the properties of Check\uncheck activity.
→ Find for the Strict selector under the Target option, open the selectors in UI Explorer.
→ Find any of the attribute which contains the Check element value.
→ Select the text and pass the SelectItem variable to it.
→ Then click on validate.

Then try weather it working or not.

Hope you understand!!

@mkankatala if you have an example xmal, please do share. I’m abit lost with this approach. just wondering why the options available in the studio do not work.

It is all based on selectors… @Moshin_Ali_Khan

Selectors will change for each and every website based on that we have to follow the approaches.

It’s not possible to do the xaml file because I don’t have the desktop application to indicate and all.

If possible setup a call, then we will try to sort out the things.

Hope you understand!!

1 Like

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