Page History
...
- In the VM, download Selenium Server (formerly the Selenium RC Server)
- http://docs.seleniumhq.org/download/
- in case of problems with the only linked version (i.e. 3.0.0-beta3), links to older packages can be found here: http://selenium-release.storage.googleapis.com/, e.g. http://selenium-release.storage.googleapis.com/2.52/selenium-server-standalone-2.52.jar
- should be something like
selenium-server-standalone-2.42.2.jar
- and then run it, e.g.
java -jar selenium-server-standalone-2.42.2.jar
- For Selenium 3+, you'll need to get Geckodriver first and provide it's location to Selenium through the webdriver.gecko.driver (Java) system property.
To do so, either run it asjava -jar -Dwebdriver.gecko.driver=/path/to/geckodriver selenium-server-standalone-3.3.1.jar
or once set it globally in/etc/environment
, e.g. throughecho webdriver.gecko.driver=/path/to/geckodriver" | sudo tee -a /etc/environment
.
- For Selenium 3+, you'll need to get Geckodriver first and provide it's location to Selenium through the webdriver.gecko.driver (Java) system property.
- http://docs.seleniumhq.org/download/
On your host run the UI Tests with the variables
seleniumServerHostName
which is the address of your newly created VM andcontainerHostName
which is the address used of your VM to access your host system (this is probably not equal to your machines address in the magnolia network)Code Block language bash $ mvn -U clean install -Pjetty9-standalone,ui-tests -DseleniumServerHostName=192.168.56.101 -DcontainerHostName=192.168.56.1
If necessary replace the IP addresses.
In your run configuration in IntelliJ you have to add these two variables
seleniumServerHostName
andcontainerHostName
as well.
...
Overview
Content Tools