Skip to content

How To Build The Project

xsalefter edited this page Sep 5, 2012 · 1 revision

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.

Linux

  1. Download Chrome Driver from Chrome Driver's download page.

  2. 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 call mvn command.
  1. 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

Windows

  1. Download Chrome Driver from Chrome Driver's download page.

  2. 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.

Windows environment variable

Build

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 to false.