This is regarding the instructions under the header Setting up Selenium in Node
I have downloaded GeckoDriver and ChromeDriver, as instructed, and have placed them both in my personal Users folder (MacOS), in my "personal name"s folder.
And I have opened my .bash_profile and exported the PATH to both files in there as such:
go the gecko i notice there a note on the download page saying that
macOS 10.15 (Catalina) and later: Due to the requirement from Apple that all programs must be
notarized, geckodriver will not work on Catalina if you manually
download it through another notarized program, such as Firefox.Whilst we are working on a repackaging fix for this problem, you can
find more details on how to work around this issue in the macOS
notarization section of the documentation.
not sure if that has effect or not
did you make that
Create a new file inside your project directory called google_test.js :
i did not answered i just kept pushing randomly on my keyboard look what we get
i read it long ago but i did not dig too deep into it you can say i just learn the possibility and not the how to so when i need it i would know where to look at
thanks a lot boss for you encourage and nice words
I’m out and about right now but when I get home, I will definitely look up that documentation about the requirement for macOS 10.15 (Catalina) and later for downloading the geckodriver.
@justsomeone, here is a screenshot of my Users/<personal name> folder. Should my PATH be changed to Users/<personal name>/geckodriver-0.30.0/<additional PATH info>? (Which will probably change once I download it again using the notarized program per the information you provided above.)
if geckodriver-0.30.0 has the driver inside it then you fine but if it has another folder and this second folder is the one that thas the driver then you would update the path to be the internal folder
is that the chromedriver ? if yes then the path would be /user/your username
so in short way the path you add is the folder that has the driver starting from the root
i do not have mac so i do not know much more about that i just trying to fix if there issue when you set the PATH
some notice about the export it effect will be immediate and till you close that current session (close the terminal in most cases) but setting it on the .bash file will stay there but you would need to reload the session so simply close the terminal and open it would do the trick
SessionNotCreatedError: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line
As instructed, I have my driver here in the path usr/local/bin
sorry for late replay for some reason i did not get an email notification and it was notification from another post that bring me the forum and saw that one
if the above is not the cause that then maybe that js file need to be updated as notice from the link of the tutorial then mention selenium version 3 while currently it version 4.9 and in another post (not about that tutorial but about some other automated stuff) those version difference lead to bugs