-
Notifications
You must be signed in to change notification settings - Fork 61
Setup
-
Clone Project:
-
Import setting:
-
In IDEA check in project structure, that:
- Project has Project SDK: 1.8 with java level 8 and output folder out
- Modules has "new_project" with "src" folder selected as "Sources"
- Libraries has all the jars from "lib" folder:
- hamcrest-core-1.3
- junit-4.12
- selenium-server-standalone-3.4.0
- Project has Project SDK: 1.8 with java level 8 and output folder out
Check your Chrome version (if link doesn't work google "chrome version check")
Then go to chrome driver download site (again if link doesn't work google "download chromedriver") and download the version of driver which is correct for your browser version, which you checked before.
Move replace the existing chrome driver in the lib
folder with the one you just downloaded.
And you see error ""chromedriver" cannot be opened because the developer cannot be verified":
Open terminal, go into the "project folder"/lib. (So if you cloned it to /Users/username/code/selenium_java_basic, do:
cd /Users/username/code/selenium_java_basic/lib
And then execute:
xattr -d com.apple.quarantine chromedriver