Using "UiElement" variable

Hello everyone.

I have a problem and I really need your help.
I am accessing a website to download some files.
Within that site I click on some options and the files are released. To download, I need to click on an icon that contains an image of a folder. The website creates an icon for each file download and the number of files can be random.

So what I did:
I used the “Find Image Matches” activity to find all the icons.
After that I am using the “For Each” activity with the intention of clicking on the images.
So inside “For Each” I put an activity “Click” and in its properties inside “Target” “Element” I informed the variable of “For Each”, but the following error is showing me.

Compiler error (s) encountered processing expression “ItemImg”.
Option Strict On does not allow implicit conversions from ‘Object’ to ‘UiPath.Core.UiElement’

But the “ItemImg” variable I created as UiElement.

What should I do?

Check that the TypeArgument parameter of your For Each activity is also set to UiPath.Core.UiElement.

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