Note: If you run the above program with Selenium WebDriver version 3, then you will get the below exception.
you can find the automation script below: Selenium Code Examples package you need to write the code to instantiate the WebDriver and open the firefox. Up to Selenium WebDriver version 2.53 or before its straight forward where there no requirement of GeckoDriver or any other driver.
How To Write Selenium Script For WebDriver Version Before GeckoDriverīefore the release of GeckoDriver, In our automation script, there is no need for using the tProperty() statements. So, let’s start to automate a simple scenario like open the firefox browser and launch google on that. After Setup, all the prerequisites, now we are are all set to run our first Java Selenium Automation program.