I have a program I made that helps book golf tee-times at some busy courses in my city. I use Selenium to navigate Chrome, pressing the buttons when time slots are available and get a time for me. I have used time.sleep() to put delays between certain parts to ensure the webpage loads. However, depending where I run it (work, home etc.) and how quick their web page responds it can take a second to update the dynamic webpage, or it can take 3-4 seconds. As I am trying to make the program work as quickly as possible, I am wondering if there is a way to have Selenium / another package determine when the webpage has has the elements on page and can then react. Right now I have 4 or 5 delay points, adding about 15 seconds to the process. I am hoping to get this down. Any suggestions on what to read into, or what could work would be greatly appreciated. Continue reading...