I have written a python selenium script to log me into a website.  This website is where I need to book a court at precisely 7am.  I cannot run the script using cron scheduler because that only runs the script and by the time selenium has logged in 7am will have passed. I've tried time() and Webdriverwait but these only allow me to delay hitting a web page button.  I need to synchronise the click of a button at a precise time from within the python script.
It has to be in combination with a cron job.
You can start the cron 1-2 minutes earlier, open the login page and, in your python script, sleep until 7am then just login.
How can I run code in selenium to execute a function at a specific hour of the day within the python script not cron