- alenan2015
- Posts : 1
Join date : 2015-02-13
Validation for error in Selenium IDE
Fri Feb 13, 2015 11:58 pm
Dear friends,
I am new in Selenium IDE. I have to make a test case for validation of a Login form (username, password, email etc).
Please advice how to add validation in the test case which check if any error is present.
Thank you in advance,
alenan2015
I am new in Selenium IDE. I have to make a test case for validation of a Login form (username, password, email etc).
Please advice how to add validation in the test case which check if any error is present.
Thank you in advance,
alenan2015
Re: Validation for error in Selenium IDE
Tue Feb 17, 2015 3:32 pm
hi,
I replicate the user login scenario in the same forum. I gave the user credentials and checked the invalid credentials message should not popup.
Please provide the valid credentials to check. Here is the selenium IDE commands:
Hope this will help.
I replicate the user login scenario in the same forum. I gave the user credentials and checked the invalid credentials message should not popup.
Please provide the valid credentials to check. Here is the selenium IDE commands:
- Code:
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=username</td>
<td>richa</td>
</tr>
<tr>
<td>type</td>
<td>name=password</td>
<td>cdfgfdgdf</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>name=login</td>
<td></td>
</tr>
<tr>
<td>verifyNotText</td>
<td>css=div.inner > p</td>
<td>You have specified an incorrect or inactive username, or an invalid password.<br /><br />Click here to try again<br /><br />Click here to return to the Index</td>
</tr>
Hope this will help.
- ccoxMaster
- Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO
Re: Validation for error in Selenium IDE
Thu Feb 19, 2015 6:27 am
download firebug. Right click on elements and you can add in verification that way.
Permissions in this forum:
You cannot reply to topics in this forum