| || |
How to compare a string in selenium.
I m new to selenium (Java) and I have a very basic query. I want to compare a text from the screen. Can anyone help me on this?
I want to compare a successful msg from the screen say "Thank you for registering."
looking forward to ur reply.
Thanks in advance.
Re: How to compare a string in selenium.
Use Assert Method like -
AssertTrue("Message to be displayed in case of errors", selenium.IsTextPresent("Thank you for registering"));