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/")
Simple question, is it possible to resume selenium code the moment the browser lands on a certain URL?
import sys WebDriverWait(driver, sys.maxsize - 1).until(lambda s: s.current_url == "https://www.myurl.com/")