I have an html page with the following content:
<center> This is Login page. <br> Please click below link to Login. <br> <a href="xxx">Login</a> </center>
How can I check all the static texts above using a single webdriver command?
I tried these, but none of this works :(
driver.findElement(By.xpath("//*[contains(.,'This is Login page.<br>Please click below link to Login')]")) driver.findElement(By.xpath("//*[contains(.,'This is Login page.\nPlease click below link to Login')]"))
Does anyone know how to do this?
source share