I'm doing some automation using KM for some webpages. Since the webpage load speed various from time to time, my automation is not working reliably by just wait for say 0.5 second. Now I switched to use "Wait for Google Chrome to Finish Loading" for at least 1 second. It seems working fine now, however the performance suffers since in one of the automation it loads 10+ pages. And what's more, inside these pages, need to click a button and then again wait for loading and then next step...
My question is what is the best practice to handle such case?
I knew in javascript there is something called waitForKeyElements (https://gist.github.com/BrockA/2625891), which will execute something only a certain element appears in the webpage, not sure if something similar available?
Thanks.