Macro: Pause Until Web Page Element Exists [Example]

To test I tried:

https://forum.keyboardmaestro.com/

li.header-dropdown-toggle.search-dropdown

Works for me in Safari 14.1.2 (Mojave). Post what OS you are on and I'll see if I've got a tester handy. And post your failing macro, just in case...

Thanks for your help.

I have Safari 16.3 on Ventura 13.2.1

And here's the macro:

Pause test macro.kmmacros (11.0 KB)

...which works fine for me on Safari 16.1/macOS 13.0.1

I'll try and put through the updates on this machine later. Meanwhile, I could reproduce the problem by turning off Safari's "Allow JavaScript from Apple Events" in the Develop menu -- so worth a quick check to make sure you haven't inadvertently done the same.

1 Like

Aha, this works!

Issue is solved for both Safari and Chrome.

Thanks so much for your help.

Thanks for creating this macro. I converted it into a subroutine. It is invaluable!

Chris