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.
This other case, the bot is clicking the right spot.
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.
@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.
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.