Use Xpath. It worked for me. And the additional advantage is, that it’ll still work if the name of links changes (as long as the xpath doesn’t change too, of course).
I know this is a very old thread, but i've started to have these same issues today. i noticed it after updating to Sonoma 14.6.1, but not sure if that is related or not.
I have a mixture of actions, some use xpath, which continues to work on all websites, but some of them i was using the "click link" action, which is more suitable in some cases (such as when the xpath changes).
Most websites continue to work as normal, but on a couple (including google as the OP pointed out) no longer seem to pull link names through to KM, and KM's actions no longer work.
I'm wondering if the website themself are somehow blocking? is anyone else having issues or have any suggested workarounds?
It's not just chrome, the same websites (such as google) also dont work with similar actions in Safari.
In chrome if i go to the privacy and security settings for the websites and turn off JS with the below toggle,
then the links pull through to KM correctly. which leads me to think there is some JS element on the website itself which is blocking it.
turning off JS for the affected sites isn't a good solution for me either unfortunately, as it's require for a lot of the webpages's functionalty.
Wondering if anyone has any suggestions for this? it's driving me crazy!
It'll help if you can provide a cut-down macro demonstrating the "broken" behaviour, a description of what should happen, and the URL for the page concerned.
There are some screenshots by OP above that show the behaviour.
It can be demonstrated in a single 'click a google chrome link' action.
On some websites the action correctly shows an exhaustive list of all of the links on the website - which is the intended behaviour. On other websites (google.com, Hipcamp.com, discoveryholidayparks.com.au), it shows 'no links found'.
I know that i can use xpath to click these in many cases, but i have a few applications where the name of a button stays the same, but the xpath changes. This action was perfect for this, as i could just 'Click Link: Save', and regardless of the xpath is would click.
From the action's Wiki page:
Note that all links visible on the web page may not be visible to Keyboard Maestro if the web page uses Frames or JavaScript or other tricks to display it.
...and they've used so much "JavaScript or other tricks" that nothing is visible to KM. So you'll have to resort to other means, maybe even targeting links via JavaScript (beat them at their own game!).