Is it possible with Python Selenium to have the script run passively in the background until certain page criteria are met, then have the script take over active control of the browser (using Chrome browser, if relevant).
I have been trying to find something like an 'on_page_load()' event that would run on every page load (which ideally would check for whether specific elements are present on the page) and which would then branch to a method that takes over control of the browser. No luck with this so far.