I am trying to get the URL of a website as soon as the URL on tab changes. But currently the script waits for the page to load and then gives me the URL. I want to get the URL in real time even before the page gets loaded.
iniurl = driver.current_url
SOME AUTOMATION STEPS
while url_change:
if driver.current_url != ini_url:
url_change = False
print(driver.current_url)
driver.quit()
Currently this is very slow, not realtime.