i have setup eclipse and setup require jar file. i want to just open browser using selenium. but it display error
-
Hi have you downloaded chrome driver for linux ?– Sagar007Commented Jul 4, 2017 at 9:34
-
yes i have download– Rutvi SoniCommented Jul 4, 2017 at 9:37
-
I think there are latest version available for chromedriver. Download it and replace with your current one. Then also try update chrome browser and use it.– Sagar007Commented Jul 4, 2017 at 9:38
-
i have replace update version but still getting error– Rutvi SoniCommented Jul 4, 2017 at 9:50
-
Update selenium 3.4.0 and chromedriver latest– Sagar007Commented Jul 4, 2017 at 10:01
2 Answers
Possible error :
- Old configurations
- Already chromedriver process is open and occupied port
Solution :
1. Use latest files :
- Java 8
- Selenium 3.4.0 (Latest one)
Chromedriver (Latest one)
Note : Clean your project before use.
2. Sometimes already opened
chromedriver
process blocked the ports :
Run command to kill all process related to chrome browser in terminal:
killall chrome killall chromedriver
Note : Name of the process would be same as given in
chromedriver
. Herechrome
is process name.
- Java 8
- Selenium 3.4.0
https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java/3.4.0
- Chromedriver 2.32
https://chromedriver.storage.googleapis.com/index.html?path=2.32/
- Chromium v61
Linux x64: https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/
Windows x64: https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/487842/