How to find out when site is finished loading to do action

Using this macro (MACRO or PLUGIN: Open or Refresh a URL in a Tab (Safari & Chrome)), I want to open a website but then issue an action only when website is loaded, it would look like this

I can't just put a pause here since it might load fast but might load slow.

Thank you for any help.

Or you can pause until a certain condition:

1 Like

thank you :green_heart:

Have this issue now, want to make macro to open Twitter search page and focus on the input after the webpage is loaded.

@cfriend seems to imply there was a condition in there for webpage loaded but I don't see it and I don't want to put a fixed time like 2 seconds.

Is it possible to achieve this?

This does work quite fast and nice

But still curious if I could do it in another way by actually asking when the page finished rendering if it's possible.

The action itself checks that the page is done loading, no other variable involved. Do you mean you don't want to put a fixed time in the "Wait For Front Browser to Finish Loading" action? Why not? Regardless, if you change it to 0 seconds I think that is what you are looking for:

I tried that, it didn't work :frowning:

The 0.8 second fixed wait time does work.

Strange, it’s working for me here with zero seconds, but ever system is different. No harm in a small pause anyway :+1:t2: