04-01-2008, 01:09 PM
Hi,
In my application i am using a checkpoint to check an error message. and i am returning the value of the checkpoint whether it is true or false.
If it is true i have to repeat the same step else EXIT.
Now my problem is each and every time the error message is different.(even though the message is different value returned by the checkpoint should be TRUE).
Possible errormessages are: Username Must be Minimum 4 Characters Long ,Username already exist,Username name1 already exist....
I tried with regular expression.
The script is given below.
Thanks and Regards.
Sherin.
In my application i am using a checkpoint to check an error message. and i am returning the value of the checkpoint whether it is true or false.
If it is true i have to repeat the same step else EXIT.
Now my problem is each and every time the error message is different.(even though the message is different value returned by the checkpoint should be TRUE).
Possible errormessages are: Username Must be Minimum 4 Characters Long ,Username already exist,Username name1 already exist....
I tried with regular expression.
The script is given below.
Code:
val=Browser("abcd").Page("xyz").WebElement("Username.*").Check (CheckPoint("Username.*"))
Thanks and Regards.
Sherin.