Source code to support the free Online course Start Using Selenium WebDriver with Java
You can find the Free Online course here:
[http://seleniumsimplified.com/get-started/ "Free course start-using-selenium-webdriver-with-java")
The source code has only really been uploaded in case people encounter problems following the instructions or make a very simple mistake that they cannot figure out.
Please read the comments below, and the source code comments if you are having trouble starting work with Firefox. Especially if you are using Firefox v 47.
Added information about using portable firefox driver and more comments.
Firefox 46 changes the way that WebDriver has to interact with it. So the built in FirefoxDriver will not work. You need to install Firefox 45 from Firefox Extended Support Release to continue using FirefoxDriver.
If you want to use Firefox 46 and later then you need to use the Marionette driver.
Follow the instructions on the Marionette page to download it. You do not need to add it to your path, you can control that through a system property - see the code in this project for more detail.
You can also use portable Firefox as described in this blog post
All of this is explained in the source code, or in the blog posts:
- http://seleniumsimplified.com/2016/04/how-to-use-the-firefox-marionette-driver/
- http://seleniumsimplified.com/2016/06/using-portable-firefox-46-with-webdriver/
The code has changed slightly because we now need to do a .close and a .quit to exit Firefox
And I've updated the version of WebDriver.