Right-click (Chromium API) clicking link in wrong place

UiPath.UiAutomation.Activities 24.10.11

I have a web page with a link to a PDF on it, I’m right-clicking the link then clicking “Save link as…”

Most of the time it works, but sometimes instead of getting the “you right-clicked a link” context menu, I get the “you right-clicked a web page” context menu. This is what should appear:

But this is what is appearing:

It happens every time on this particular item, and for any item where it happens it happens consistently. The automation faulted on this item, so I opened it and created a simple test XAML:

I tried Simulate and nothing happens at all. Window Messages seems to work.

You can use Anker with selector in this case to stable your selector.
Other solution is to extract the file URL and use Go to URL activity to open pdf in new tab so there wont be any dependency on click selector.

The selector is not the issue. It works most of the time. The element is correctly identified but the right-click is in the wrong place, which I’m not sure how that’s even possible with Chromium API. The solution, as I stated, was to switch to Window Messages. I’m simply reporting the problem with the Chromium API method.

1 Like