How to assert text is not present for a specific element in python/selenium? How to assert text is not present for a specific element in python/selenium? selenium selenium

How to assert text is not present for a specific element in python/selenium?


self.assertNotEqual(str(elem.text), "Your email address or password is invalid.", "your assertion fail message-optional")