9d. WebDriver – Executing the Test

What good is a line-by-line code walk-through, if you can’t execute and see the output? So without any more fuss, let’s run our code!!

Eclipse gives us the power to do this very same task in 3 ways,

  • Method 1: Click on the ‘Run’ shortcut icon in Eclipse.
  • Method 2: Right click on the class file, Run As -> Java Application.
  • Method 3: Use the combination, CTRL+F11.

Test execution

Sprinkling in some visual relief:

Executing our test will open a new Firefox browser window and perform the test steps as per the code. The output is displayed in the console as shown in the above screenshot.

Time for the first BrainBell of WebDriver series: Recall! Do you know that in the process of remembering things, we even add new thoughts to it? Recalling is an on-the-fly reconstruction of elements scattered in our brain – call it, creative re-imagination. The more you recall, the better you remember!

So recall how we came up with the code for our fist scenario that we just executed and you are all equipped to try some simple scenarios of your own. Give me a shout in the comments section if you encounter any bumps in your journey.

See you again in another post! Have a nice day!

Series Navigation<< 9c. WebDriver – First test script by launching Firefox9e. WebDriver – Code samples for launching other browsers >>
By | 2017-07-14T22:08:31+00:00 November 30th, 2016|Selenium|0 Comments

About the Author:

Lakshmi Chandana is a Software professional + passion-fueled blogger + novel-reader + artist + tutor to make your day a little brighter than it was before! She is thrilled you are here! She is on a mission to make sure learning sticks but with the fun part kept intact. She uses certain tricks called BrainBells (inspired from barbells and dumbbells used for a workout) to achieve this and she says, “this is not the hardest job! As once minions said, it for sure is working in a bubble wrap factory. Imagine the self-control needed!” So, dive in to explore the fun-filled World of Selenium!!

Leave A Comment