Selenium Driver Setup
If you are getting an error like "The chromedriver.exe file does not exist in the current directory"
or "geckodriver.exe does not exist"
Step 1:
For Chrome, open the URL mentioned below. Here you need to download chromedriver.exe
You can choose the latest version of this file.
For Firefox, open the URL mentioned below. Here you need to download geckodriver.exe
For Firefox, open the URL mentioned below. Here you need to download geckodriver.exe
Step 2:
After downloading the file, place the .exe file in your project under any directory.
Note: Location choice is yours.
Step 3:
Specify the location in the code.
Step 4:
Alternate and Easy Step
Install the chrome driver only as mentioned in the snapshot below. You don't need .exe in this case.
Run the code as shown in the snapshot below
Note: You might get chrome version error. Make sure you have the latest chrome installed or update your browser.
It will open the browser successfully. In the above example, it will open the chrome browser.
Well Explained..
ReplyDeleteAw, this was an extremely good post. Spending some time and actual effort to create a really good article… but what can I say… I procrastinate a whole lot and never manage to get nearly anything done.
ReplyDelete