We shall make use of the Mercury Excursions site as our internet software under check. It’s a web-based trip booking program which has all of the components we are in need of regarding this lesson. Its link is http://newtours.demoaut.comOR which is likely to be our Foundation link.

NOTICE: the website http://newtours.demoaut.comOR at period is lower and never open to focus on. We’ve elevated this problem using horsepower

Produce a Software by Documenting
Let’s today produce our initial check software in Selenium IDE utilizing the most typical technique – by documenting. After, we will perform our software utilizing the play function.

Action 1
Start Opera and Selenium IDE.
Kind the worthiness for the Foundation link: http://newtours.demoaut.comOR.
Toggle the Report switch on (if it’s not however toggled on automagically).

Step 2
In Opera, understand to http://newtours.demoaut.comOR. Opera must consider one to the webpage like the one found below.

Action 3
Correct-click any empty room inside the webpage, like about the Mercury Excursions emblem about the upper-left part. This can mention the Selenium IDE context-menu. Notice: DoN’t click any hyperlinked items or pictures
Choose the “Display Accessible Instructions” choice.
Next, choose “assertTitle precise: Pleasant: Mercury Excursions”. This can be a order which makes sure the webpage name is proper.

Action 4
Within the “User-Name” textbox of Mercury Excursions, kind an unacceptable login, “invalidUN”.
Within the “Code” textbox, kind an unacceptable password, “invalidPW”.

Action 5
Click the “Indication-In” switch. Opera must consider one to this site.

Action 6
Toggle the report switch down to prevent saving. The software must today seem like the main one found below.

Action 7
Since we’re completed with our check software, we will conserve it in a test-case. Within the Document menus, choose “Conserve Test-Case”. Alternately, you are able to merely push Ctrl+S.

Action 8
Select your preferred area, after which title the test-case as “Invalid_login”.
Press the “Conserve” switch.

Action 9.
Observe that the document was preserved as HTML.

Action 10.

Return to Selenium IDE and press the Play switch to perform the entire software. Selenium IDE must certanly be in a position to duplicate everything perfectly.

Intro to Selenium Instructions – Selenese
Selenese instructions might have up to and including highest of two guidelines: goal and worth.
Guidelines aren’t needed constantly. This will depend how numerous the order will require.
To get a total research of Selenese instructions, go here

THREE Kinds Of Instructions

These are instructions that straight connect to webpage components.

Instance: the “press” order is definitely an motion since you straight connect to the component you’re pressing at.

The INCHkind” order can also be a motion since you are placing ideals right into a textbox, and also the wording box exhibits these for you in exchange. There’s a two way conversation between anyone and also the textbox.


They’re instructions that permit you to shop ideals to some varied.

Instance: the “storeTitle” order is definitely an accessor since it just “scans” the webpage name and preserves it in a varied. It generally does not connect to any component about the webpage.


They’re instructions that confirm if your particular situation is fulfilled.

THREE Kinds Of Statements

Claim. Whenever an INCHclaim” order fails, the check is ceased instantly.
Confirm. Whenever a INCHconfirm” order fails, Selenium IDE firewood this failing and proceeds using the check delivery.
WaitFor. Before continuing to another order, “waitFor” instructions may initial watch for a particular situation to become accurate.
When the situation becomes accurate inside the waiting interval, the action moves.

When the situation doesn’t become accurate, the action fails. Failing is drenched, and check delivery profits to another order.
Automagically, the timeout price is placed to thirty seconds. You are able to alter this within the Selenium IDE Choices discussion underneath the Common tabs.

Leave a Reply

Your email address will not be published. Required fields are marked *