I want to load my driver until my current_url contains "something". I have tried the following code:
self.url = self.driver.current_url
try:
element = WebDriverWait(self.driver, 20).until(EC.title_contains("XXX", "YYY", "ZZZ"))
except:
print "\n IMPERFECT URL \n"
finally:
self.driver.quit()
But this approach uses title search .. I want to check my current url for possible sets of strings. How do I do that? Also I want to check for three sets of strings in the same url. Could somebody help. I am a newbie in Selenium.