After following the instructions in the Mozilla Developer Network for setting up a Selenium testing environment, I have two questions (since all of the instructions I've researched everywhere are vague):
Which version of GeckoDriver and ChromeDriver am I supposed to download? (I have a MacOS running Big Sur v. 11.6.)
Per the MDN instructions, I am supposed to put these drivers inside my /Users/<personal name> folder. Then open up my .bash_profile file in a terminal shell and type the following in the bottom of the file: export PATH=$PATH:/Users/<personal name>. That's all that is described but I feel like more is supposed to be typed here. Should there be?
After following these instructions, and typing echo $PATH, this path is returned:
/Users/<personal name>/.nvm/versions/node/v16.11.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/<personal name>/.nvm/versions/node/v16.11.0/bin:/Users/<personal name>/geckodriver-0.30.0:/Users/<personal name>
Seems like the path is running all over the place.
And when I run a gecko-test.js file to run a Firefox simulation with node gecko-test, I get this response:
Error: The geckodriver executable could not be found on the current PATH. Please download the latest version from http://github.com/mozilla/geckodriver/releases/ and ensure it can be found on your PATH.