Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ COPY supervisord.conf /etc
RUN mkdir -p /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
&& touch /opt/selenium/config.toml \
&& chmod -R 777 /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor /etc/passwd \
&& wget --no-verbose https://github.com/SeleniumHQ/docker-selenium/raw/beta-jars/selenium-server-4.0.0-prerelease-beta-1-4610dcfb35.jar \
&& wget --no-verbose https://github.com/SeleniumHQ/docker-selenium/raw/beta-jars/selenium-server-4.0.0-prerelease-beta-1-1f4909f59c.jar \
-O /opt/selenium/selenium-server.jar \
# && wget --no-verbose https://selenium-release.storage.googleapis.com/4.0-alpha-6/selenium-server-4.0.0-alpha-6.jar \
# -O /opt/selenium/selenium-server.jar \
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ release: tag_major_minor
docker push $(NAME)/standalone-opera:$(MAJOR_MINOR_PATCH)
docker push $(NAME)/standalone-docker:$(MAJOR_MINOR_PATCH)
docker push $(NAME)/video:$(FFMPEG_TAG_VERSION)-$(BUILD_DATE)
docker tag $(NAME)/video:$(FFMPEG_TAG_VERSION)-$(BUILD_DATE) $(NAME)/video:latest
docker push $(NAME)/video:latest
# video: this should be moved to release_latest when Selenium 4 is released

test: test_chrome \
test_firefox \
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,6 @@ configs = [
host = "tcp://host.docker.internal:2375"
# Docker imagee used for video recording
video-image = "selenium/video:ffmpeg-4.3.1-20201202"
# Absolute path where test assets will be stored (this path must exist on the host)
assets-path = "/assets/path/on/your/host/machine"
# Absolute path where test assets will be stored inside the container
# "/opt/selenium/assets" already exists inside the containers
# If you want to use another one, be sure it exists.
container-assets-path = "/opt/selenium/assets"

# Uncomment the following section if you are running the node on a separate VM
# Fill out the placeholders with appropriate values
Expand All @@ -283,6 +277,8 @@ $ docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub \
selenium/node-docker:4.0.0-beta-1-prerelease-20201202
```

To have the assets saved on your host, please mount your host path to `/opt/selenium/assets`.

When you are done using the Grid, and the containers have exited, the network can be removed with the following command:

``` bash
Expand All @@ -299,6 +295,8 @@ docker run --rm -ti --name selenium-docker -p 4444:4444 \
selenium/standalone-docker:4.0.0-beta-1-prerelease-20201202
```

To have the assets saved on your host, please mount your host path to `/opt/selenium/assets`.

### Video recording, screen resolution, and time zones in a Dynamic Grid
To record your WebDriver session, you need to add a `se:options` section to
your capabilities and inside it, configure the desired settings, for example:
Expand Down