Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Validation for error in Selenium IDE

View previous topic View next topic Go down

Validation for error in Selenium IDE

Post by alenan2015 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

alenan2015

Posts : 1
Join date : 2015-02-13

Back to top Go down

Re: Validation for error in Selenium IDE

Post by Adviser 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

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

Re: Validation for error in Selenium IDE

Post by ccox on Thu Feb 19, 2015 6:27 am

download firebug.  Right click on elements and you can add in verification that way.

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 31
Location : Denver, CO

Back to top Go down

Re: Validation for error in Selenium IDE

Post by Sponsored content Today at 5:03 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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