Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Checklist How to Install Firefox GeckoDriver and Chromedriver on Windows and Mac for Selenium WebDriver with Java

14,913 views

Published on

Checklist How to Install Firefox GeckoDriver and Chromedriver on Windows and Mac for Selenium WebDriver with Java

Uses https://github.com/eviltester/startUsingSeleniumWebDriver

*Basic steps:*

- Install Java and supporting tools
- install Java JDK
- install Maven
- check Java and Maven work by running a sample test
- Install IntelliJ
- check IntelliJ works by running the sample test
- Install WebDriver Supporting Tools
- download and Install Chrome
- download and Install Firefox
- download and install Marionette GeckoDriver
- download and Install ChromeDriver
- check installs work by running the sample tests

## See the supporting Install Videos

*Windows Install Videos*

* [YouTube Video Showing the Java Install on Windows 10](https://www.youtube.com/watch?v=j-46lYWAHF0)
* https://www.youtube.com/watch?v=j-46lYWAHF0
* [YouTube Video Showing the WebDriver Install on Windows 10](https://www.youtube.com/watch?v=gteqOBS_Ln4)
* https://www.youtube.com/watch?v=gteqOBS_Ln4

*Mac Install Videos*

* [YouTube Video Showing the Java Install on a Mac](https://youtu.be/ff5ZsthcSZw)
* https://youtu.be/ff5ZsthcSZw
* [YouTube Video Showing the WebDriver Install on a Mac](https://youtu.be/nq97dfaVmC4)
* https://youtu.be/nq97dfaVmC4

Published in: Software
  • Be the first to comment

Checklist How to Install Firefox GeckoDriver and Chromedriver on Windows and Mac for Selenium WebDriver with Java

  1. 1. Generic Selenium WebDriver Install Speedrun checklist Basic steps: Install Java and supporting tools install Java JDK install Maven check Java and Maven work by running a sample test Install IntelliJ check IntelliJ works by running the sample test Install WebDriver Supporting Tools download and Install Chrome download and Install Firefox download and install Marionette GeckoDriver download and Install ChromeDriver check installs work by running the sample tests
  2. 2. Install Videos Windows Install Videos YouTube Video Showing the Java Install on Windows 10 https://www.youtube.com/watch?v=j­46lYWAHF0 YouTube Video Showing the WebDriver Install on Windows 10 https://www.youtube.com/watch?v=gteqOBS_Ln4 Mac Install Videos YouTube Video Showing the Java Install on a Mac https://youtu.be/ff5ZsthcSZw YouTube Video Showing the WebDriver Install on a Mac https://youtu.be/nq97dfaVmC4
  3. 3. Windows Install Speedrun checklist Install Java Pre­requisites For instructions on how to install Java, Maven and IntelliJ; and check they are working, use the checklist in  startUsingJavaJunit  project:  startUsingJavaJunit  project Java Install Checklist
  4. 4. Install Sample WebDriver Project on Windows  [ ] Download Test Project (this has a simple pom.xml and a basic test to run)  [ ] visit https://github.com/eviltester/startUsingSeleniumWebDriver  [ ] download the zip file and unzip somewhere  [ ] Install and run IntelliJ Community Edition  [ ] open project for the unzipped pom.xml file
  5. 5.  [ ] check most up to date version of webdriver in the unzipped pom.xml file  [ ] check the webdriver downloads page or the maven page for the up to date version  [ ] amend the pom.xml file if the version number is not up to date  [ ] exit IntelliJ
  6. 6. Install Firefox and Marionette GeckoDriver on Windows  [ ] If install ESR version of Firefox (45) https://www.mozilla.org/en­US/firefox/organizations/faq/  *  [ ] no need to download any extra drivers  *  [ ] in startUsingSeleniumWebDriver folder run command  mvn test ‐Dtest=MyFirstTest   [ ] Install Current version of Firefox  *  [ ] download GeckoDriver add it to the path  * https://github.com/mozilla/geckodriver  * https://github.com/mozilla/geckodriver/releases  *  [ ] in startUsingSeleniumWebDriver folder run command  mvn test ‐Dtest=MyFirstTestFF48 
  7. 7. Install Chrome and ChromeDriver on Windows  [ ] Install Current version of Chrome  *  [ ] download ChromeDriver add it to the path * https://sites.google.com/a/chromium.org/chromedriver/  *  [ ] in startUsingSeleniumWebDriver folder run command  mvn test ‐Dtest=MyFirstChromeTest 
  8. 8. Run Test From IDE on Windows  [ ] Back in IntelliJ  [ ] run MyFirstTest, or MyFirstTestFF48 or MyFirstChromeTest class  [ ] right click on the class in the project window and select "Run  [ ] When the test runs from the IDE, you are finished your install and setup
  9. 9. Mac Install Speedrun checklist ­ Homebrew Install Java Pre­requisites For instructions on how to install Java, Maven and IntelliJ; and check they are working, use the checklist in  startUsingJavaJunit  project:  startUsingJavaJunit  project Java Install Checklist
  10. 10. Install WebDriver Sample Project on Mac  [ ] Install Java JDK, Maven ­ see  startUsingJavaJunit  project  [ ] Install and run IntelliJ Community Edition ­ see  startUsingJavaJunit  project  [ ] Download Test Project (this has a simple pom.xml and a basic test to run)  [ ] visit https://github.com/eviltester/startUsingSeleniumWebDriver  [ ] download the zip file and unzip somewhere
  11. 11.  [ ] open project for the unzipped pom.xml file  [ ] check most up to date version of webdriver in the unzipped pom.xml file  [ ] check the Selenium webdriver downloads page or the maven page for the up to date version I do not recommend using a beta version  [ ] amend the  pom.xml  file if the version number is not up to date  [ ] exit IntelliJ
  12. 12. Install Firefox and Marionette GeckoDriver on Mac  [ ] If install ESR version of Firefox (45) https://www.mozilla.org/en­US/firefox/organizations/faq/  [ ] no need to download any extra drivers  [ ] in startUsingSeleniumWebDriver folder run command  mvn test ‐Dtest=MyFirstTest 
  13. 13.  [ ] Install Current version of Firefox either with cask  brew cask install firefox  or visit the site and install  [ ] download GeckoDriver add it to the path https://github.com/mozilla/geckodriver https://github.com/mozilla/geckodriver/releases extract into a folder and rename to wires add path to  .bash_profile   export PATH=$PATH:/folder/you/extracted/it/to   [ ] in startUsingSeleniumWebDriver folder run command  mvn test ‐Dtest=MyFirstTestFF48 
  14. 14. Install Chrome and ChromeDriver on Mac  [ ] Install Current version of Chrome  * either with cask  brew cask install google‐chrome   * or visit the site and install  [ ]  Install ChromeDriver  *  [ ] download ChromeDriver add it to the path * https://sites.google.com/a/chromium.org/chromedriver/  * extract into a folder  * add folder path to  .bash_profile   *  export PATH=$PATH:/folder/you/extracted/it/to   *  [ ] in startUsingSeleniumWebDriver folder run command  mvn test ‐Dtest=MyFirstChromeTest 
  15. 15. Run Test From IDE on Windows  [ ] Back in IntelliJ  [ ] run MyFirstTest, or MyFirstTestFF48 or MyFirstChromeTest class  [ ] right click on the class in the project window and select "Run  [ ] When the test runs from the IDE, you are finished your install and setup
  16. 16. Generic Links: sample JUnit test project from https://github.com/eviltester/startUsingJavaJUnit Java Install Checklist Download IntelliJ from http://www.jetbrains.com/idea/download/ sample webdriver test project from https://github.com/eviltester/startUsingSeleniumWebDriver
  17. 17. Check current webdriver version from http://docs.seleniumhq.org/download/ http://docs.seleniumhq.org/download/maven.jsp ChromeDriver https://sites.google.com/a/chromium.org/chromedriver/ Mozilla GeckoDriver https://github.com/mozilla/geckodriver https://github.com/mozilla/geckodriver/releases Mac HomeBrew and Cask http://brew.sh https://caskroom.github.io/
  18. 18. Selenium Simplified Online Training and blog teaching Selenium WebDriver with Java www.seleniumsimplified.com By Alan Richardson www.eviltester.com www.javafortesters.com www.compendiumdev.co.uk http://uk.linkedin.com/in/eviltester @eviltester

×