Skip to content
Kristine edited this page Apr 29, 2021 · 9 revisions
  1. Clone Project: Alt text Alt text

  2. Import setting: Alt text Alt text Alt text

  3. In IDEA check in project structure, that: Alt text

    • Project has Project SDK: 1.8 with java level 8 and output folder out Alt text
    • Modules has "new_project" with "src" folder selected as "Sources" Alt text Alt text Alt text Alt text Alt text Alt text Alt text
    • Libraries has all the jars from "lib" folder:
      • hamcrest-core-1.3
      • junit-4.12
      • selenium-server-standalone-3.4.0 Alt text

When executing tests I see an error that I have version of Chrome XX, but driver supports Chrome YY

Alt text

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.

In case you are running it on Mac

And you see error ""chromedriver" cannot be opened because the developer cannot be verified":

Alt text

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