Share
Go down
alenan2015
Posts : 1
Join date : 2015-02-13

Validation for error in Selenium IDE

on 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
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: Validation for error in Selenium IDE

on 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: 
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.

_________________
Spread Your Knowledge About Selenium Tool.

Administrator
Email: selenium.discussion.thread@live.com
Forum: http://seleniumforum.forumotion.net
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 33
Location : Denver, CO

Re: Validation for error in Selenium IDE

on Thu Feb 19, 2015 6:27 am
download firebug.  Right click on elements and you can add in verification that way.
Sponsored content

Re: Validation for error in Selenium IDE

Back to top
Permissions in this forum:
You cannot reply to topics in this forum