I have a selenium test which need to wait till any text to be populated instead an exact text string match...
I have learned that text_to_be_present_in_element
, text_to_be_present_in_element_value
can be used for this type of purpose but I might need something like regular expression instead of exact match.
Can anyone share is it possible?
# exact match.
from selenium.webdriver.support import expected_conditions as EC
wait = WebDriverWait(driver, 10)
element = wait.until(EC.text_to_be_present_in_element((By.Id,'f_name'), '<searchstring>'))