Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

2 like 0 dislike
13.6k views
by The go-to Tester (222 points)
Can you help me with step by step instruction on how to set an environment PATH to point to geckodriver?

2 Answers

1 like 0 dislike
by The go-to Tester (222 points)
selected by
 
Best answer

On Windows 7 or similar computer,

  1. Download geckodriver from https://github.com/mozilla/geckodriver/releases
  2. Download the right version for the computer you are using
  3. Unzip the file you just downloaded and cut/copy the ".exe" file it contains. (Do not include the file name itself. Just a path. Say your geckodriver.exe path is c:\drivers\geckodriver.exe, just use location as c:\drivers. The selenium library will take care of picking up the .exe file.)
  4. From the desktop, right click the Computer icon.
  5. Choose Properties from the context menu.
  6. Click the Advanced system settings link.
  7. Click Environment Variables. In the section System Variables, find the PATH/Path environment variable and select it. Click Edit. If the PATH/Path environment variable does not exist, click New.
  8. In case of Edit System Variable in the Value field, append ';' and then a location to the geckodriver.exe file. If you are creating a new System Variable, Variable Name should be PATH and in Value field, enter location to the geckodriver.exe file.
  9. Now restart your development environment.
0 like 0 dislike
by


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...