How do I start Firefox using Selenium WebDriver?

How do I start Firefox using Selenium WebDriver?

Firefox is one of the most widely used browsers in the automation business. To use the Selenium Webdriver with the Firefox browser, follow these steps:

  1. Get geckodriver.exe from the GeckoDriver Github Release Page. Make sure you have the right driver for your platform and operating system.
  2. System.setProperty(““webdriver.gecko.driver””,““geckodriver.exe path””) for ““webdriver.gecko.driver””;"