Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit cbbe631

Browse files
Merged from upstream
2 parents 76919fa + a27f331 commit cbbe631

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+908
-638
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ body:
5555
attributes:
5656
label: Docker Selenium version (tag)
5757
description: What version of Docker Selenium are you using?
58-
placeholder: 4.10.0-20230607? Please use the full tag, avoid "latest"
58+
placeholder: 4.11.0-20230801? Please use the full tag, avoid "latest"
5959
validations:
6060
required: true

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Output Docker info
2222
run: docker info
2323
- name: Set up Python 3.8
24-
uses: actions/setup-python@v4.6.1
24+
uses: actions/setup-python@v4.7.0
2525
with:
2626
python-version: 3.8
2727
- name: Get branch name (only for push to branch)

.github/workflows/test-video.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Output Docker info
1919
run: docker info
2020
- name: Set up Python 3.8
21-
uses: actions/setup-python@v4.6.1
21+
uses: actions/setup-python@v4.7.0
2222
with:
2323
python-version: 3.8
2424
- name: Get branch name (only for push to branch)

Base/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ COPY supervisord.conf /etc
9292
RUN mkdir -p /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
9393
&& touch /opt/selenium/config.toml \
9494
&& chmod -R 777 /opt/selenium /opt/selenium/assets /var/run/supervisor /var/log/supervisor /etc/passwd \
95-
&& wget --no-verbose https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.10.0/selenium-server-4.10.0.jar \
95+
&& wget --no-verbose https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.11.0/selenium-server-4.11.0.jar \
9696
-O /opt/selenium/selenium-server.jar \
97-
&& wget --no-verbose https://repo1.maven.org/maven2/org/seleniumhq/selenium/selenium-http-jdk-client/4.10.0/selenium-http-jdk-client-4.10.0.jar \
97+
&& wget --no-verbose https://repo1.maven.org/maven2/org/seleniumhq/selenium/selenium-http-jdk-client/4.11.0/selenium-http-jdk-client-4.11.0.jar \
9898
-O /opt/selenium/selenium-http-jdk-client.jar \
9999
&& chgrp -R 0 /opt/selenium ${HOME} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
100100
&& chmod -R g=u /opt/selenium ${HOME} /opt/selenium/assets /var/run/supervisor /var/log/supervisor \
@@ -114,7 +114,7 @@ RUN if [ `arch` = "aarch64" ]; then \
114114
fi
115115

116116
RUN if [ -f "/tmp/cs" ]; then \
117-
/tmp/cs fetch --classpath --cache /external_jars io.opentelemetry:opentelemetry-exporter-jaeger:1.22.0 io.grpc:grpc-netty:1.52.1 > /external_jars/.classpath.txt ; \
117+
/tmp/cs fetch --classpath --cache /external_jars io.opentelemetry:opentelemetry-exporter-jaeger:1.26.0 io.grpc:grpc-netty:1.55.1 > /external_jars/.classpath.txt ; \
118118
fi
119119

120120
RUN if [ -f "/tmp/cs" ]; then chmod 664 /external_jars/.classpath.txt ; fi

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
NAME := $(or $(NAME),$(NAME),selenium)
22
CURRENT_DATE := $(shell date '+%Y%m%d')
33
BUILD_DATE := $(or $(BUILD_DATE),$(BUILD_DATE),$(CURRENT_DATE))
4-
VERSION := $(or $(VERSION),$(VERSION),4.1.0)
4+
VERSION := $(or $(VERSION),$(VERSION),4.11.0)
55
TAG_VERSION := $(VERSION)-$(BUILD_DATE)
66
NAMESPACE := $(or $(NAMESPACE),$(NAMESPACE),$(NAME))
77
AUTHORS := $(or $(AUTHORS),$(AUTHORS),SeleniumHQ)

NodeChrome/Dockerfile

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,27 @@ USER 1200
4040
# Latest released version will be used by default
4141
#============================================
4242
ARG CHROME_DRIVER_VERSION
43-
RUN if [ -z "$CHROME_DRIVER_VERSION" ]; \
44-
then CHROME_MAJOR_VERSION=$(google-chrome --version | sed -E "s/.* ([0-9]+)(\.[0-9]+){3}.*/\1/") \
45-
&& NO_SUCH_KEY=$(curl -ls https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_MAJOR_VERSION} | head -n 1 | grep -oe NoSuchKey) ; \
46-
if [ -n "$NO_SUCH_KEY" ]; then \
47-
echo "No Chromedriver for version $CHROME_MAJOR_VERSION. Use previous major version instead" \
48-
&& CHROME_MAJOR_VERSION=$(expr $CHROME_MAJOR_VERSION - 1); \
49-
fi ; \
50-
CHROME_DRIVER_VERSION=$(wget --no-verbose -O - "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_MAJOR_VERSION}"); \
43+
RUN if [ ! -z "$CHROME_DRIVER_VERSION" ]; \
44+
then CHROME_DRIVER_URL=https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/$CHROME_DRIVER_VERSION/linux64/chromedriver-linux64.zip ; \
45+
else echo "Geting ChromeDriver binary from https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json" \
46+
&& CFT_URL=https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json \
47+
&& CFT_CHANNEL="Stable" \
48+
&& if [[ $CHROME_VERSION == *"beta"* ]]; then CFT_CHANNEL="Beta"; fi \
49+
&& if [[ $CHROME_VERSION == *"unstable"* ]]; then CFT_CHANNEL="Dev"; fi \
50+
&& CTF_VALUES=$(curl -sSL $CFT_URL | jq -r --arg CFT_CHANNEL "$CFT_CHANNEL" '.channels[] | select (.channel==$CFT_CHANNEL)') \
51+
&& CHROME_DRIVER_VERSION=$(echo $CTF_VALUES | jq -r '.version' ) \
52+
&& CHROME_DRIVER_URL=$(echo $CTF_VALUES | jq -r '.downloads.chromedriver[] | select(.platform=="linux64") | .url' ) ; \
5153
fi \
52-
&& echo "Using chromedriver version: "$CHROME_DRIVER_VERSION \
53-
&& wget --no-verbose -O /tmp/chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip \
54+
&& echo "Using ChromeDriver from: "$CHROME_DRIVER_URL \
55+
&& echo "Using ChromeDriver version: "$CHROME_DRIVER_VERSION \
56+
&& wget --no-verbose -O /tmp/chromedriver_linux64.zip $CHROME_DRIVER_URL \
5457
&& rm -rf /opt/selenium/chromedriver \
5558
&& sudo unzip /tmp/chromedriver_linux64.zip -d /opt/selenium \
5659
&& rm /tmp/chromedriver_linux64.zip \
57-
&& sudo mv /opt/selenium/chromedriver /opt/selenium/chromedriver-$CHROME_DRIVER_VERSION \
60+
&& sudo mv /opt/selenium/chromedriver-linux64/chromedriver /opt/selenium/chromedriver-$CHROME_DRIVER_VERSION \
5861
&& sudo chmod 755 /opt/selenium/chromedriver-$CHROME_DRIVER_VERSION \
5962
&& sudo ln -fs /opt/selenium/chromedriver-$CHROME_DRIVER_VERSION /usr/bin/chromedriver
6063

61-
6264
#============================================
6365
# Dumping Browser name and version for config
6466
#============================================

NodeDocker/config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Configs have a mapping between the Docker image to use and the capabilities that need to be matched to
33
# start a container with the given image.
44
configs = [
5-
"selenium/standalone-firefox:4.10.0-20230607", '{"browserName": "firefox", "platformName": "linux"}',
6-
"selenium/standalone-chrome:4.10.0-20230607", '{"browserName": "chrome", "platformName": "linux"}',
7-
"selenium/standalone-edge:4.10.0-20230607", '{"browserName": "MicrosoftEdge", "platformName": "linux"}'
5+
"selenium/standalone-firefox:4.11.0-20230801", '{"browserName": "firefox", "platformName": "linux"}',
6+
"selenium/standalone-chrome:4.11.0-20230801", '{"browserName": "chrome", "platformName": "linux"}',
7+
"selenium/standalone-edge:4.11.0-20230801", '{"browserName": "MicrosoftEdge", "platformName": "linux"}'
88
]
99

1010
# URL for connecting to the docker daemon
@@ -14,7 +14,7 @@ configs = [
1414
# socat -4 TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock
1515
url = "http://127.0.0.1:2375"
1616
# Docker image used for video recording
17-
video-image = "selenium/video:ffmpeg-4.3.1-20230607"
17+
video-image = "selenium/video:ffmpeg-4.3.1-20230801"
1818

1919
# Uncomment the following section if you are running the node on a separate VM
2020
# Fill out the placeholders with appropriate values

0 commit comments

Comments
 (0)