Selenium WebDriver

By | September 11, 2018

Let us start our ride with Selenium Web Driver with Fundamental questions:

What?

Break up the words – Web and Driver: Basically web driver is a thing which drives your browser to achieve your automated steps.

How?

So How does Web Driver perform these:

WebDriver makes direct calls to the browser using each browser’s built in support for automation. Unlike Selenium RC it directly talks to your browser using drivers of respective browser(We will take a look in detail in later tutorials).

See the below illustration of Direct Talk.

Like any other communication needs a language selenium web driver also needs a language to talk to browser. And browser should understand that.

It can be Java, Python, C#, Ruby, Perl JavaScript or PHP. Pick a language whatever is comfortable for you and start a conversation with your browser using web driver. In this tutorial I will let my web driver to talk in Java.

 

So here on further rides of web driver are intended to seekers who has basic knowledge on Java. Just brush up or revisit your Java programming basics before going further.

I would like to get our hands dirty believing that it is the perfect way of learning. Just practice and practice it.

Prerequisites:

  1. An IDE(Eclipse or IntelliJ whatever IDE you are comfortable at).
  2. Download Selenium Jars from https://selenium-release.storage.googleapis.com/index.html.  Preferably 3.7 or 3.8. Do not take the beta(or Latest released) version rather pickup stable version.
  3.  Download browser drivers depending the browser you want to run your scripts on:
  4. Chrome: https://chromedriver.storage.googleapis.com/index.html . Pick up the version depending on your browser version. Pick the latest drivers so that it will be compatible with latest chrome browser version.(Download respective OS driver)
  5. Firefox : https://chromedriver.storage.googleapis.com/index.html . Pick up the version depending on your browser version. Pick the latest drivers so that it will be compatible with latest chrome browser version.(Download respective OS driver).

And the drivers mentioned are not developed by Selenium HQ, those are all developed by third party.

Download and install all prerequisites.

Happy Learning!!

 

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.