Web Automation Using Selenium
  • About The Book
  • Selenium
    • Introduction
      • What is testing and why?
      • What is Selenium and Why?
    • Getting Started
      • Audience
      • Prerequisite
      • Set up
      • Getting Started - Hello World..!!
      • What are drivers
    • Locators
      • CSS Selectors
      • XPath Selector
    • WebDriver
      • WebDriver Methods
      • WebDriver Types
    • WebElement(s)
      • WebElement Methods
      • Looping Through WebElements
    • Waits In Selenium
  • TestNG
    • Introduction
    • TestNG Setup
    • First Test Script
    • Some of the features of TestNG
    • TestNG Annotations
      • @Test
      • @DataProvider
  • Maven
    • Introduction
  • Framework Development
    • Introduction
    • Building Framework
      • Technology Stack
      • Page Object Model (POM)
      • Setup
      • What our framework contain
      • Packages
        • Context
        • Factory
        • Listeners
        • Pages
      • Creating first automation test
  • Common Interview Questions
    • Selenium-Related
Powered by GitBook
On this page

Was this helpful?

  1. Selenium
  2. Getting Started

What are drivers

chromedriver.exe, gekodriver.exe etc.,

PreviousGetting Started - Hello World..!!NextLocators

Last updated 5 years ago

Was this helpful?

As mentioned in the set up. We have downloaded and added the chromedriver to our project folder.

These drivers are the interfaces between our Java code and the Browser application (in OS level). Meaning, whatever the code we are writing, those are converted to instructions to the browser based on the driver we provide. Similarly every browser has its own driver version. Sometimes it depends on the version of the browser also. So before we start automating any browser we need to have correct driver version in place.

For example if we think to use FireFox as the browser the we have to download .

Then in over code, instead of

WebDriver driver = new ChromeDriver();

We would say,

WebDriver driver = new FireFoxDriver();

That's it, now our script will run in Firefox.

geckodriver