Skip to content

Commit fdeb047

Browse files
authored
Merge branch 'trunk' into patch-3
2 parents 7bf0cb9 + 25038c5 commit fdeb047

File tree

438 files changed

+6095
-4065
lines changed

Some content is hidden

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

438 files changed

+6095
-4065
lines changed

.github/workflows/calibreapp-image-actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
github.event.pull_request.head.repo.full_name == github.repository)
3737
steps:
3838
- name: Checkout Branch
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@v5
4040
- name: Compress Images
4141
id: calibre
4242
uses: calibreapp/image-actions@main

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Checkout repo
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v5
1616
with:
1717
fetch-depth: 0
1818
- name: Setup Hugo
1919
uses: peaceiris/actions-hugo@v3
2020
with:
21-
hugo-version: ' 0.125.4'
21+
hugo-version: ' 0.148.2'
2222
extended: true
2323
- name: Build
2424
run: chmod +x build-site.sh && ./build-site.sh

.github/workflows/dotnet-examples.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ${{ format('{0}-latest', matrix.os) }}
3131
steps:
3232
- name: Checkout GitHub repo
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v5
3434
- name: Remove driver directories Windows
3535
if: matrix.os == 'windows'
3636
run: |
@@ -46,12 +46,12 @@ jobs:
4646
run: Xvfb :99 &
4747
- name: Set up .Net Stable
4848
if: matrix.release == 'stable'
49-
uses: actions/setup-dotnet@v4
49+
uses: actions/setup-dotnet@v5
5050
with:
5151
dotnet-version: 8.x
5252
- name: Set up .Net Nightly
5353
if: matrix.release == 'nightly'
54-
uses: actions/setup-dotnet@v4
54+
uses: actions/setup-dotnet@v5
5555
with:
5656
dotnet-version: 8.x
5757
source-url: https://nuget.pkg.github.com/seleniumhq/index.json
@@ -80,15 +80,15 @@ jobs:
8080
env:
8181
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8282
- name: Set up Java
83-
uses: actions/setup-java@v4
83+
uses: actions/setup-java@v5
8484
with:
8585
distribution: 'temurin'
8686
java-version: 11
8787
- name: Run tests
8888
uses: nick-fields/[email protected]
8989
with:
90-
timeout_minutes: 20
91-
max_attempts: 3
90+
timeout_minutes: 40
91+
max_attempts: 2
9292
command: |
9393
cd examples/dotnet/SeleniumDocs
9494
dotnet test

.github/workflows/java-examples.yml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ${{ format('{0}-latest', matrix.os) }}
3131
steps:
3232
- name: Checkout GitHub repo
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v5
3434
- name: Remove driver directories Windows
3535
if: matrix.os == 'windows'
3636
run: |
@@ -46,7 +46,7 @@ jobs:
4646
run: Xvfb :99 &
4747
- name: Set up Java
4848
id: java
49-
uses: actions/setup-java@v4
49+
uses: actions/setup-java@v5
5050
with:
5151
distribution: 'temurin'
5252
java-version: 17
@@ -72,23 +72,36 @@ jobs:
7272
timeout_minutes: 40
7373
max_attempts: 3
7474
command: |
75-
pip install yq
76-
xml_content=$(curl -sf https://oss.sonatype.org/service/local/repositories/snapshots/content/org/seleniumhq/selenium/selenium-java/)
77-
latest_snapshot=$(echo "$xml_content" | xq '.content.data."content-item"' | jq -r 'sort_by(.lastModified) | last | .text')
78-
echo "Latest Selenium Snapshot: $latest_snapshot"
79-
cd examples/java
80-
mvn -B -U test -D"jdk.internal.httpclient.disableHostnameVerification=true"
81-
75+
# Get current selenium.version from Maven
76+
current_version=$(mvn -f examples/java/pom.xml help:evaluate -Dexpression=selenium.version -q -DforceStdout)
77+
echo "Current selenium.version: $current_version"
78+
# If version is in the form X.Y.Z, bump minor and set to SNAPSHOT
79+
if [[ $current_version =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
80+
major="${BASH_REMATCH[1]}"
81+
minor="${BASH_REMATCH[2]}"
82+
next_minor=$((minor + 1))
83+
new_version="$major.$next_minor.0-SNAPSHOT"
84+
echo "Using selenium.version $new_version for tests"
85+
cd examples/java
86+
mvn -B -U test -D"jdk.internal.httpclient.disableHostnameVerification=true" -Dselenium.version=$new_version
87+
fi
8288
- name: Run Tests Nightly Windows
8389
if: matrix.release == 'nightly' && matrix.os == 'windows'
8490
uses: nick-invision/[email protected]
8591
with:
8692
timeout_minutes: 40
8793
max_attempts: 3
8894
command: |
89-
pip install yq
90-
$xml_content = Invoke-WebRequest -Uri "https://oss.sonatype.org/service/local/repositories/snapshots/content/org/seleniumhq/selenium/selenium-java/"
91-
$latest_snapshot = $xml_content.Content | xq '.content.data.\"content-item\"' | jq -r 'sort_by(.lastModified) | last | .text'
92-
Write-Output "Latest Selenium Snapshot: $latest_snapshot"
93-
cd examples/java
94-
mvn -B -U test -D"jdk.internal.httpclient.disableHostnameVerification=true"
95+
# Get current selenium.version from Maven
96+
$current_version = & mvn -f examples/java/pom.xml help:evaluate -Dexpression=selenium.version -q -DforceStdout
97+
Write-Output "Current selenium.version: $current_version"
98+
# If version is in the form X.Y.Z, bump minor and set to SNAPSHOT
99+
if ($current_version -match '^([0-9]+)\.([0-9]+)\.([0-9]+)$') {
100+
$major = $matches[1]
101+
$minor = $matches[2]
102+
$next_minor = [int]$minor + 1
103+
$new_version = "$major.$next_minor.0-SNAPSHOT"
104+
Write-Output "Using selenium.version $new_version for tests"
105+
cd examples/java
106+
mvn -B -U test "-Djdk.internal.httpclient.disableHostnameVerification=true" "-Dselenium.version=$new_version"
107+
}

.github/workflows/js-examples.yml

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -30,41 +30,7 @@ jobs:
3030
runs-on: ${{ format('{0}-latest', matrix.os) }}
3131
steps:
3232
- name: Checkout GitHub repo
33-
uses: actions/checkout@v4
34-
- name: Install Chrome for set binary test
35-
uses: browser-actions/setup-chrome@v1
36-
with:
37-
chrome-version: stable
38-
id: setup-chrome
39-
- name: Install Edge for set binary test
40-
uses: browser-actions/setup-edge@v1
41-
with:
42-
edge-version: stable
43-
id: setup-edge
44-
- name: Install Firefox for set binary test
45-
if: matrix.os != 'windows'
46-
uses: browser-actions/setup-firefox@v1
47-
with:
48-
firefox-version: latest
49-
id: setup-firefox
50-
- name: Set ENV Windows
51-
if: matrix.os == 'windows'
52-
run: |
53-
echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> $env:GITHUB_ENV
54-
echo "EDGE_BIN=C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" >> $env:GITHUB_ENV
55-
echo "FF_BIN=C:\Program Files (x86)\Mozilla Firefox\firefox-browser.exe" >> $env:GITHUB_ENV
56-
- name: Set ENV Mac
57-
if: matrix.os == 'macos'
58-
run: |
59-
echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV"
60-
echo "EDGE_BIN=/Users/runner/hostedtoolcache/msedge/stable/x64/Contents/MacOS/Microsoft Edge" >> "$GITHUB_ENV"
61-
echo "FF_BIN=/Users/runner/hostedtoolcache/firefox/latest/x64/Contents/MacOS/firefox" >> "$GITHUB_ENV"
62-
- name: Set ENV Linux
63-
if: matrix.os == 'ubuntu'
64-
run: |
65-
echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV"
66-
echo "EDGE_BIN=/opt/hostedtoolcache/msedge/stable/x64/msedge" >> "$GITHUB_ENV"
67-
echo "FF_BIN=/opt/hostedtoolcache/firefox/latest/x64/firefox" >> "$GITHUB_ENV"
33+
uses: actions/checkout@v5
6834
- name: Remove driver directories Windows
6935
if: matrix.os == 'windows'
7036
run: |
@@ -80,12 +46,12 @@ jobs:
8046
run: Xvfb :99 &
8147
- name: Setup Node Stable
8248
if: matrix.release == 'stable'
83-
uses: actions/setup-node@v4
49+
uses: actions/setup-node@v6
8450
with:
8551
node-version: '22.x'
8652
- name: Setup Node Nightly
8753
if: matrix.release == 'nightly'
88-
uses: actions/setup-node@v4
54+
uses: actions/setup-node@v6
8955
with:
9056
node-version: '22.x'
9157
registry-url: 'https://npm.pkg.github.com'
@@ -118,8 +84,8 @@ jobs:
11884
- name: Run tests
11985
uses: nick-invision/[email protected]
12086
with:
121-
timeout_minutes: 20
122-
max_attempts: 3
87+
timeout_minutes: 40
88+
max_attempts: 2
12389
command: |
12490
cd examples/javascript
12591
npm test

.github/workflows/kotlin-examples.yml

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -29,41 +29,7 @@ jobs:
2929
runs-on: ${{ format('{0}-latest', matrix.os) }}
3030
steps:
3131
- name: Checkout GitHub repo
32-
uses: actions/checkout@v4
33-
- name: Install Chrome for set binary test
34-
uses: browser-actions/setup-chrome@v1
35-
with:
36-
chrome-version: stable
37-
id: setup-chrome
38-
- name: Install Edge for set binary test
39-
uses: browser-actions/setup-edge@v1
40-
with:
41-
edge-version: stable
42-
id: setup-edge
43-
- name: Install Firefox for set binary test
44-
if: matrix.os != 'windows'
45-
uses: browser-actions/setup-firefox@v1
46-
with:
47-
firefox-version: latest
48-
id: setup-firefox
49-
- name: Set ENV Windows
50-
if: matrix.os == 'windows'
51-
run: |
52-
echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> $env:GITHUB_ENV
53-
echo "EDGE_BIN=C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" >> $env:GITHUB_ENV
54-
echo "FF_BIN=C:\Program Files (x86)\Mozilla Firefox\firefox-browser.exe" >> $env:GITHUB_ENV
55-
- name: Set ENV Mac
56-
if: matrix.os == 'macos'
57-
run: |
58-
echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV"
59-
echo "EDGE_BIN=/Users/runner/hostedtoolcache/msedge/stable/x64/Contents/MacOS/Microsoft Edge" >> "$GITHUB_ENV"
60-
echo "FF_BIN=/Users/runner/hostedtoolcache/firefox/latest/x64/Contents/MacOS/firefox" >> "$GITHUB_ENV"
61-
- name: Set ENV Linux
62-
if: matrix.os == 'ubuntu'
63-
run: |
64-
echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV"
65-
echo "EDGE_BIN=/opt/hostedtoolcache/msedge/stable/x64/msedge" >> "$GITHUB_ENV"
66-
echo "FF_BIN=/opt/hostedtoolcache/firefox/latest/x64/firefox" >> "$GITHUB_ENV"
32+
uses: actions/checkout@v5
6733
- name: Remove driver directories Windows
6834
if: matrix.os == 'windows'
6935
run: |
@@ -78,15 +44,15 @@ jobs:
7844
if: matrix.os == 'ubuntu'
7945
run: Xvfb :99 &
8046
- name: Set up Java
81-
uses: actions/setup-java@v4
47+
uses: actions/setup-java@v5
8248
with:
8349
distribution: 'temurin'
8450
java-version: 11
8551
- name: Run tests
8652
uses: nick-invision/[email protected]
8753
with:
88-
timeout_minutes: 20
89-
max_attempts: 3
54+
timeout_minutes: 40
55+
max_attempts: 2
9056
command: |
9157
cd examples/kotlin
9258
mvn -B test

.github/workflows/label-commenter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
comment:
1414
runs-on: ubuntu-24.04
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- name: Label Commenter
1818
uses: peaceiris/actions-label-commenter@v1

.github/workflows/link-check.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ on:
77
push:
88
branches:
99
- trunk
10+
paths:
11+
- 'website_and_docs/**'
1012
pull_request:
13+
paths:
14+
- 'website_and_docs/**'
1115

1216
jobs:
1317
htmltest:
@@ -16,18 +20,18 @@ jobs:
1620
group: ${{ github.workflow }}-${{ github.ref }}
1721
steps:
1822
- name: Check out repository
19-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2024

2125
- name: Set up Hugo
2226
uses: peaceiris/actions-hugo@v3
2327
with:
24-
hugo-version: ' 0.125.4'
28+
hugo-version: ' 0.148.2'
2529
extended: true
2630

2731
- name: Setup Node
28-
uses: actions/setup-node@v4
32+
uses: actions/setup-node@v6
2933
with:
30-
node-version: '22.15.0'
34+
node-version: '22.20.0'
3135
cache: 'npm'
3236
# The action defaults to search for the dependency file (package-lock.json,
3337
# npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its
@@ -47,7 +51,7 @@ jobs:
4751
args: website_and_docs/public/ --check-anchors
4852

4953
- name: Archive hyperlink results
50-
uses: actions/upload-artifact@v4
54+
uses: actions/upload-artifact@v5
5155
with:
5256
name: hyperlink-report
5357
path: website_and_docs/tmp/.hyperlink/hyperlink.log

.github/workflows/python-examples.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,26 @@ jobs:
2828
include:
2929
- os: ubuntu
3030
release: stable
31-
python: '3.9'
31+
python: '3.10'
3232
- os: ubuntu
3333
release: nightly
34-
python: '3.11'
34+
python: '3.14'
3535
- os: windows
3636
release: stable
37-
python: '3.9'
37+
python: '3.10'
3838
- os: windows
3939
release: nightly
40-
python: '3.12'
40+
python: '3.14'
4141
- os: macos
4242
release: stable
4343
python: '3.10'
4444
- os: macos
4545
release: nightly
46-
python: '3.13'
46+
python: '3.14'
4747
runs-on: ${{ format('{0}-latest', matrix.os) }}
4848
steps:
4949
- name: Checkout GitHub repo
50-
uses: actions/checkout@v4
50+
uses: actions/checkout@v5
5151
- name: Remove driver directories Windows
5252
if: matrix.os == 'windows'
5353
run: |
@@ -62,7 +62,7 @@ jobs:
6262
if: matrix.os == 'ubuntu'
6363
run: Xvfb :99 &
6464
- name: Set up Python
65-
uses: actions/setup-python@v5
65+
uses: actions/setup-python@v6
6666
with:
6767
python-version: ${{ matrix.python }}
6868
- name: Install dependencies nightly non-Windows
@@ -90,7 +90,7 @@ jobs:
9090
python -m pip install --upgrade pip
9191
pip install -r requirements.txt
9292
- name: Set up Java
93-
uses: actions/setup-java@v4
93+
uses: actions/setup-java@v5
9494
with:
9595
distribution: 'temurin'
9696
java-version: 11
@@ -101,4 +101,4 @@ jobs:
101101
max_attempts: 3
102102
command: |
103103
cd examples/python
104-
pytest --reruns 3
104+
pytest --reruns 3 -n auto

0 commit comments

Comments
 (0)