How can I check if text is present in selenium webdriver
& python
?
I tried :
def get_email(browser):
email_check = driver.find_element(By.CLASS_NAME("viewed-user-email")).text
assert user_name in email_check, "Text not found %s" % user_name
the response is:
TypeError: 'str' object is not callable