Dear ,
Thank you for registering. You may now sign-in using the user name and password you've just entered.
Note: Your user name is xxx.
Hello Pradeep,Use the following code (If location of text on page not matters)::
driver.getPageSource().contains(" ");
Thanks,Dhiraj | Skype: dhiraj.chaubey
On Saturday, 31 August 2013 17:54:53 UTC+5:30, pradeep wrote:Hi,Using Selenium WebDriver, i'm trying to automate http://newtours.demoaut.com portal.In this portal, once we register, the below confirmation message is displayed:Dear ,
Thank you for registering. You may now sign-in using the user name and password you've just entered.
Note: Your user name is xxx.
How to verify the above text in the WebDriver code? i tried by taking xpath as below, but after that i'm not sure how to validate it.
WebElement text =driver.findElement(By.xpath("/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[3]/td/p/font/b"));
Any help would be appreciated.Thanks,Pradeep
--To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/7649eeb3-1ca6-4d96-8961-90fdcf5e46c9%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.