How to record validation messages using selenium
I am using selenium RC in C# environment for tessting a website.Now I am given the task of capturing validation messages that are firing out of webpages.
For example, when typing a four letter password on the PASSWORD field, validation message will appear as >>Password should contain atleast 6 characters.
I have to capture this msg. I have been able to use IsTextPresent() to check whether the exact text given as the argument is appearing as validation msg.
Is there any other way to capture the ACTUAL client side validation messages that are firing out of the webpage.
Re: How to record validation messages using selenium
I guess it depends on the msg but in some cases I'm using (Java):
assertTrue(selenium.getAlert().matches("YOUR MSG HERE"));