From 33d7aa500e6899b2ebf77c2e9b7963f384228c15 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Tue, 8 Dec 2020 13:19:57 +0100 Subject: [PATCH 1/3] Pushing a `latest` for selenium/video --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 8f8de026b8..53f8d02607 100644 --- a/Makefile +++ b/Makefile @@ -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 \ From b40ea31bf3aec0daddcd5065cc73c0b9b42bfa5e Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Tue, 8 Dec 2020 13:20:28 +0100 Subject: [PATCH 2/3] Using selenium-server-4.0.0-prerelease-beta-1-1f4909f59c.jar --- Base/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Base/Dockerfile b/Base/Dockerfile index 5245e0625c..fd15261f6e 100644 --- a/Base/Dockerfile +++ b/Base/Dockerfile @@ -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 \ From dbbb78e58a9c07cdd85d868c41ff282890646a61 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Tue, 8 Dec 2020 13:22:48 +0100 Subject: [PATCH 3/3] Simplifying configuration for Dynamic Grid & video recording --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 01857a2790..bee6035a5e 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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: