Wednesday, November 5, 2014
On 6:57 AM by Unknown in Firefox, Sample Selenium IDE Test Script Recording, Selenium, Selenium IDE, test script 15 comments
Sample Selenium IDE Test Script by Recording:
We will use the Mercury Tours website as our web application under test. It is an online flight reservation system that contains all the elements we need for this tutorial. Its URL is http://newtours.demoaut.com/ and this will be our Base URL.
NOTE: The site http://newtours.demoaut.com/ at time is down and not available to work on. We have raised this issue with HP
- Create a Script by Recording
Let us now create our first test script in Selenium IDE using the most common method – by recording. Afterwards, we shall execute our script using the playback feature.
Step 1:
- Launch Firefox and Selenium IDE.
- Type the value for our Base URL: http://newtours.demoaut.com/.
- Toggle the Record button on (if it is not yet toggled on by default).

Step 2:
- In Firefox, navigate to http://newtours.demoaut.com/. Firefox should take you to the page similar to the one shown below

Step 3:
- Right-click on any blank space within the page, like on the Mercury Tours logo on the upper left corner. This will bring up the Selenium IDE context menu. Note: Do not click on any hyperlinked objects or images
- Select the “Show Available Commands” option.
- Then, select “assertTitle exact:Welcome: Mercury Tours”. This is a command that makes sure that the page title is correct.

Step 4:
- In the “User Name” text box of Mercury Tours, type an invalid username, “invalidUN”.
- In the “Password” text box, type an invalid password, “invalidPW”.


Step 5:
- Click on the “Sign-In” button. Firefox should take you to this page.

Step 6:
- Toggle the record button off to stop recording. Your script should now look like the one shown below.

Step 7:
- Now that we are done with our test script, we shall save it in a test case. In the File menu, select “Save Test Case”. Alternatively, you can simply press Ctrl+S.

Step 8:
- Choose your desired location, and then name the test case as “Invalid_login”.
- Click the “Save” button.

Step 9:
- Notice that the file was saved as HTML.

Step 10:
- Go back to Selenium IDE and click the Playback button to execute the whole script. Selenium IDE should be able to replicate everything flawlessly

Subscribe to:
Post Comments (Atom)
Search
Popular Posts
-
Sample Selenium IDE Test Script by Recording: We will use the Mercury Tours website as our web application under test. It is an online flig...
-
Locating GUI Elements Locating elements in WebDriver is done by using the “findElement(By. locator ())” method. The “locator” part of the co...
-
Answer 75 : If you want to see all options available while starting Selenium server then you should use option “-h” while starting Seleni...
-
Answer 60 : While using java you need to create instance of DefaultSelenium class and pass it four parameters – selenium = ne...
-
Answer 51 : Selenium RC is an offering from SeleniumHQ which tries to overcome following draw backs of Selenium IDE – Able to execute...
-
Answer 54 : Selenium core is the core JS engine of Selenium which executes tests on browser, but because of same origin policy it needs t...
-
Answer 18 : You need to use context menu to add check points to your Selenium IDE tests Answer 19 : There are two ways to edit tests...
-
Answer 15 : Yes, you can first record individual test cases and then group all of them in a test suite. Following this entire test suite ...
-
Answer 38 : You could XPath checker - https://addons.mozilla.org/en-US/firefox/addon/xpath-checker/ to test you XPath locators and Fi...
-
Answer 44 : You can change default behavior of Selenium IDE > element locator preference by crating JS file with following– Locato...
Shaik. Powered by Blogger.
As disussed above software testing is one of the important field in detecting the bugs. In Software testing selenium training institute in Chennai we are enabled to identify the errors with advanced level of selenium course and can match the actual results with that of expected results.
ReplyDeleteWell somehow I got to read lots of articles on your blog. It’s amazing how interesting it is for me to visit you very often.
ReplyDeletepython training Course in chennai
python training in Bangalore
Python training institute in bangalore
Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
ReplyDeleteJava training in Chennai | Java training in Omr
Oracle training in Chennai
Java training in Chennai | Java training in Annanagar
Java training in Chennai | Java training institute in Chennai | Java course in Chennai
Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
ReplyDeleteData Science Course in Indira nagar
Data Science Course in btm layout
Python course in Kalyan nagar
Data Science course in Indira nagar
Data Science Course in Marathahalli
Data Science Course in BTM Layout
Well researched article and I appreciate this. The blog is subscribed and will see new topics soon.
ReplyDeletePython Online training
python Training in Chennai
Python training in Bangalore
It is better to engaged ourselves in activities we like. I liked the post. Thanks for sharing.
ReplyDeleteData Science course in kalyan nagar
Data Science course in OMR
Data Science course in chennai
Data science course in velachery
Data science course in jaya nagar
Data Science interview questions and answers
Data science course in bangalore
Data Science training in Bangalore, Visit:
ReplyDeleteData Science training in Bangalore
For Blockchain training in bangalore, Visit:
ReplyDeleteBlockchain training in bangalore
For Devops Training in Bangalore
ReplyDeleteReally Getting interest while reading each and every post. Thanks for sharing your valuable time with this Informative contents.For Python Training Visit
ReplyDeletepython training in chennai | python training in annanagar | python training in omr | python training in porur | python training in tambaram | python training in velachery
Nice Blog. the blog is really very Impressive. every concept should be explained very Neatly.
ReplyDeleteData Science Training Course In Chennai | Data Science Training Course In Anna Nagar | Data Science Training Course In OMR | Data Science Training Course In Porur | Data Science Training Course In Tambaram | Data Science Training Course In Velachery
Really it was an awesome article...very interesting to read..You have provided an nice article....keep sharing more information!!!
ReplyDeleteAndroid Training in Chennai
Android Online Training in Chennai
Android Training in Bangalore
Android Training in Hyderabad
Android Training in Coimbatore
Android Training
Android Online Training
Its such as you learn my mind! You appeаr tо grasp ѕo much approximately this, such as you wrote the book in it or something.
ReplyDeleteI think that you could ɗo wіth some percent to pressure the mesѕage home a little bit,
but instead of that, this iѕ excellent blog. An excellent
read. I ԝilⅼ defіnitely be back.
data science training in chennai
data science training in velachery
android training in chennai
android training in velachery
devops training in chennai
devops training in velachery
artificial intelligence training in chennai
artificial intelligence training in velachery
perde modelleri
ReplyDeletesms onay
mobil ödeme bozdurma
nft nasıl alınır
Ankara Evden Eve Nakliyat
trafik sigortası
Dedektör
Web Sitesi Kurma
aşk kitapları
smm panel
ReplyDeleteSmm Panel
İş ilanları
instagram takipçi satın al
Hirdavatciburada.com
beyazesyateknikservisi.com.tr
SERVİS
JETON HİLESİ İNDİR