Bot clicking the wrong spot

Hi there,

My bot needs to download attachments from a website.
The part I’m struggling is that some attachment’s name are bigger than others. For example, in this case, the attachment name has 2 lines and the bot is clicking on the box instead of the hyperlink.
image

This other case, the bot is clicking the right spot.

image

How can I make the bot click the correct spot, no matter how long the name is?

It looks like you’re indicating a table cell instead of the link itself. Your selector should include tag=‘A’ if you’re indicating the link. Show us your selector. Also you shouldn’t need three different anchors. You shouldn’t need any anchors in most cases.

this is the window selector

@NathaliaFawcett Are you using dynamic selector means attaching name is stored in any variable?

Regards,
Ajay Mishra

It doesn’t show. You have to highlight it and click this button…

image

And we don’t need to see the window selector, we need to see the strict or fuzzy selector (whichever you’re using).

I don’t seem to have the </> option here.
I changed the anchors to be only one.

Here is the fuzzy selector
image

No, I don’t have a variable for this case

You have aaname as * which is a wildcard. You need to leave aaname specific to the link you want it to click.

@NathaliaFawcett You should use a dynamic variable in the selector!

A String variable which stores the value of attachment name!

Regards,
Ajay Mishra

But the aaname is getting the name of the file, that will change every time

@NathaliaFawcett Yes so first of all you have to extract all the names of the file that you have to download then using foreach one by one download each attachment using dynamic selector.

For eg:
aaname = strAttachmentName

Regards,
Ajay Mishra

Are you using hardware events? You should try Simulate. That way it sends a “message” to the browser to issue a click event for the link, rather than actually moving the mouse to it.

Also, you can move the little bullseye icon to control where it clicks.

But the names of the files will change, I don’t have a way to know what the name will be

Will try that, thank you.