12-08-2009, 02:25 PM
Sorry for making you confused with my query.
There is a text box(for example:Amount field, here it shows three different validators for invalid data. 1.for entering value not in the boundary values. 2.for Entering Special characters. 3. for entering decimal points).Now i need to set one value to this field and check one validator excistence that needs to appear and also need to check whether other two validators are not appearing.
In the Website thati am testing is done on .NET, if i see the view source for this text box one validator details are present with in<tr> and single <td> and an end tag and some other validator details are present with in <tr> and two <td>.
So i want a generalised code for identifying these validators and give a message validator one present and validator 2 and validator three are not present.
There is a text box(for example:Amount field, here it shows three different validators for invalid data. 1.for entering value not in the boundary values. 2.for Entering Special characters. 3. for entering decimal points).Now i need to set one value to this field and check one validator excistence that needs to appear and also need to check whether other two validators are not appearing.
In the Website thati am testing is done on .NET, if i see the view source for this text box one validator details are present with in<tr> and single <td> and an end tag and some other validator details are present with in <tr> and two <td>.
So i want a generalised code for identifying these validators and give a message validator one present and validator 2 and validator three are not present.