-
Notifications
You must be signed in to change notification settings - Fork 99
How To Build The Project
As this project written in Java, having JDK 5 or greater and maven is required in Linux, Windows, or other environment. We test this project on Firefox and Chrome extensively, so we need those browsers installed in our system. More instruction for specifics operating system would be described below.
-
Download Chrome Driver from Chrome Driver's download page.
-
Extract downloaded chromedriver executable file and make sure it's available on system path. Here we have 2 alternatives:
- Call
export PATH=$PATH:<path-to-executable-chromedriver-file>
, or - Add JVM properties
-Dwebdriver.chrome.driver=<path-to-executable-chromedriver>
when callmvn
command.
- As described on their wiki,
For Linux systems, the ChromeDriver expects /usr/bin/google-chrome to be a symlink to the actual Chrome binary
We need to make sure that we have similar output when call ls -la /usr/bin/google-chrome
:
lrwxrwxrwx 1 root root 25 2012-08-13 22:41 /usr/bin/google-chrome -> /usr/bin/chromium-browser
-
Download Chrome Driver from Chrome Driver's download page.
-
Extract downloaded chromedriver executable file, then create new environment variable named
webdriver.chrome.driver
and set the value with directory of chromedriver.exe is available.
Call mvn install
on your console. Note that for those windows users:
- We have this issue.
- Sometimes you found that an EULA popup is coming out when you run the test. To disable this, open file named master_preferences on your chrome installation path, and set the value of
require_eula
tofalse
.