Skip to content
Advertisement

Is it possible to resume Selenium code when the browser lands on a certain url?

Simple question, is it possible to resume selenium code the moment the browser lands on a certain URL?

Advertisement

Answer

import sys

WebDriverWait(driver, sys.maxsize - 1).until(lambda s: s.current_url == "https://www.myurl.com/")
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement