mirror of
https://github.com/aelve/guide.git
synced 2024-11-28 22:20:02 +03:00
Updated Selenium tests (markdown)
parent
858f6331ce
commit
6068471e18
@ -8,13 +8,13 @@ Instructions assume Ubuntu 16.04/16.10, but package managers for your distributi
|
||||
|
||||
1. Java runtime (`java`).
|
||||
|
||||
The Oracle JVM can be installed with:
|
||||
The Oracle JVM can be installed with:
|
||||
|
||||
Note: These instructions are incomplete if using OpenJDK.
|
||||
|
||||
```
|
||||
apt install oracle-java8-installer
|
||||
```
|
||||
Note: These instructions are incomplete if using OpenJDK.
|
||||
|
||||
```
|
||||
apt install oracle-java8-installer
|
||||
```
|
||||
|
||||
2. Selenium stand-alone server.
|
||||
|
||||
@ -22,34 +22,34 @@ apt install oracle-java8-installer
|
||||
|
||||
Using the current download link (as of Feb 2. 2017) to download it to your home directory:
|
||||
|
||||
```
|
||||
wget https://goo.gl/Lyo36k -o ~/selenium-server-standalone.jar
|
||||
```
|
||||
```
|
||||
wget https://goo.gl/Lyo36k -o ~/selenium-server-standalone.jar
|
||||
```
|
||||
|
||||
|
||||
3. Chromium webdriver.
|
||||
|
||||
This will install the `chromedriver` binary to `/usr/lib/chromium-browser/chromedriver` on Ubuntu. Take note of the location of the binary if your package manager uses.
|
||||
|
||||
```
|
||||
apt install chromium-chromedriver
|
||||
```
|
||||
This will install the `chromedriver` binary to `/usr/lib/chromium-browser/chromedriver` on Ubuntu. Take note of the location of the binary if your package manager uses.
|
||||
|
||||
```
|
||||
apt install chromium-chromedriver
|
||||
```
|
||||
|
||||
4. (Optional) For headless operation, xvfb.
|
||||
|
||||
The X virtual framebuffer will allow Chromium to run for tests on a server, this is not necessary if using a desktop with X or X forwarding.
|
||||
|
||||
```
|
||||
apt install xvfb
|
||||
```
|
||||
The X virtual framebuffer will allow Chromium to run for tests on a server, this is not necessary if using a desktop with X or X forwarding.
|
||||
|
||||
```
|
||||
apt install xvfb
|
||||
```
|
||||
|
||||
5. Launching Selenium.
|
||||
|
||||
The path to the `chromedriver` binary needs to be given when launching the server, as follows:
|
||||
|
||||
```
|
||||
java -Dwebdriver.chrome.driver=/usr/lib/chromium-browser/chromedriver -jar ~/selenium-server-standalone.jar
|
||||
```
|
||||
The path to the `chromedriver` binary needs to be given when launching the server, as follows:
|
||||
|
||||
```
|
||||
java -Dwebdriver.chrome.driver=/usr/lib/chromium-browser/chromedriver -jar ~/selenium-server-standalone.jar
|
||||
```
|
||||
|
||||
### With Stack
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user