Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

Validation for error in Selenium IDE Empty 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
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

Validation for error in Selenium IDE Empty 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: 
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.
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO

Validation for error in Selenium IDE Empty 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.
Sponsored content

Validation for error in Selenium IDE Empty Re: Validation for error in Selenium IDE

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