How Many Types of WebDriver API’s are Available in Selenium?

The list of WebDriver API’s which are used to automate browser include:

  • AndroidDriver
  • ChromeDriver
  • EventFiringWebDriver
  • FirefoxDriver
  • HtmlUnitDriver
  • InternetExplorerDriver
  • iPhoneDriver
  • iPhoneSimulatorDriver
  • RemoteWebDriver

As of my last knowledge update in January 2022, there are several WebDriver APIs available in Selenium, each designed for different web browsers. The main WebDriver APIs include:

  1. WebDriver for Chrome (ChromeDriver): Used to automate Chrome browser.
  2. WebDriver for Firefox (FirefoxDriver): Used to automate Firefox browser.
  3. WebDriver for Internet Explorer (InternetExplorerDriver): Used to automate Internet Explorer browser.
  4. WebDriver for Edge (EdgeDriver): Used to automate Microsoft Edge browser.
  5. WebDriver for Safari (SafariDriver): Used to automate Safari browser.
  6. WebDriver for Opera (OperaDriver): Used to automate Opera browser.

It’s important to note that the WebDriver for Internet Explorer (InternetExplorerDriver) is deprecated, and Microsoft recommends using EdgeDriver for automating Internet Explorer 11 or later versions.

Please check the official Selenium documentation or resources for any updates or changes in WebDriver APIs, as the Selenium project may evolve over time.