Skip to content

Commit 49ab89b

Browse files
authored
Merge branch 'trunk' into ruby-bidi-examples
2 parents 4601947 + 21884af commit 49ab89b

File tree

910 files changed

+59538
-28457
lines changed

Some content is hidden

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

910 files changed

+59538
-28457
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
4+
# Maintain dependencies for GitHub Actions
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"

.github/label-commenter-config.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Configuration for Label Commenter - https://github.com/peaceiris/actions-label-commenter
2+
labels:
3+
- name: needs-triaging
4+
labeled:
5+
issue:
6+
body: |
7+
@{{ issue.user.login }}, thank you for creating this issue. We will troubleshoot it as soon as we can.
8+
9+
---
10+
<details>
11+
<summary>Info for maintainers</summary>
12+
<div>
13+
<br>
14+
<p>
15+
Triage this issue by using labels.
16+
</p>
17+
<p>
18+
If information is missing, add a helpful comment and then <code>I-issue-template</code> label.
19+
</p>
20+
<p>
21+
If the issue is a question, add the <code>I-question</code> label.
22+
</p>
23+
<p>
24+
If the issue is valid but there is no time to troubleshoot it, consider adding the <code>help wanted</code> label.
25+
</p>
26+
<p>
27+
After troubleshooting the issue, please add the <code>R-awaiting answer</code> label.
28+
</p>
29+
<p>
30+
Thank you!
31+
</p>
32+
</div>
33+
</details>
34+
- name: I-issue-template
35+
labeled:
36+
issue:
37+
body: |
38+
Hi, @{{ issue.user.login }}.
39+
Please follow the issue template, we need more information to reproduce the issue.
40+
41+
Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.
42+
43+
Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.
44+
45+
Reply to this issue when all information is provided, thank you.
46+
- name: I-question
47+
labeled:
48+
issue:
49+
body: |
50+
💬 Please ask questions at:
51+
* 📫 The [Selenium user group](https://groups.google.com/forum/#!forum/selenium-users)
52+
* 📮 [StackOverflow](https://stackoverflow.com/questions/tagged/selenium)
53+
* 🗣 Our [IRC/Slack/Matrix channels](https://www.selenium.dev/support/) where the community can help you as well
54+
action: close
55+
- name: help wanted
56+
labeled:
57+
issue:
58+
body: |
59+
This issue is looking for contributors.
60+
61+
Please comment below or reach out to us through our [IRC/Slack/Matrix channels](https://www.selenium.dev/support/) if you are interested.

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

Lines changed: 2 additions & 2 deletions
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@v2
39+
uses: actions/checkout@v4
4040
- name: Compress Images
4141
id: calibre
4242
uses: calibreapp/image-actions@main
@@ -49,7 +49,7 @@ jobs:
4949
if: |
5050
github.event_name != 'pull_request' &&
5151
steps.calibre.outputs.markdown != ''
52-
uses: peter-evans/create-pull-request@v3
52+
uses: peter-evans/create-pull-request@v7
5353
with:
5454
title: Auto Compress Images
5555
branch-suffix: timestamp

.github/workflows/deploy.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,28 @@ on:
44
push:
55
branches:
66
- trunk
7+
workflow_dispatch:
78

89
jobs:
910
deploy:
10-
if: contains(toJson(github.event.commits), '[deploy site]') == true
11-
runs-on: ubuntu-20.04
11+
if: contains(toJson(github.event.commits), '[deploy site]') == true || github.event_name == 'workflow_dispatch'
12+
runs-on: ubuntu-24.04
1213
steps:
1314
- name: Checkout repo
14-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1516
with:
1617
fetch-depth: 0
1718
- name: Setup Hugo
18-
uses: peaceiris/actions-hugo@v2
19+
uses: peaceiris/actions-hugo@v3
1920
with:
20-
hugo-version: '0.101.0'
21+
hugo-version: ' 0.125.4'
2122
extended: true
2223
- name: Build
2324
run: chmod +x build-site.sh && ./build-site.sh
2425
env:
2526
SELENIUM_CI_TOKEN: ${{secrets.SELENIUM_CI_TOKEN}}
2627
- name: Deploy
27-
uses: peaceiris/actions-gh-pages@v3
28+
uses: peaceiris/actions-gh-pages@v4
2829
with:
2930
personal_token: ${{ secrets.SELENIUM_CI_TOKEN }}
3031
publish_dir: ./website_and_docs/public

.github/workflows/dotnet-examples.yml

Lines changed: 55 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,71 @@ env:
2121
GH_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }}
2222

2323
jobs:
24-
test_examples:
24+
tests:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
os: [ ubuntu-latest, windows-latest, macos-latest ]
29-
runs-on: ${{ matrix.os }}
28+
os: [ ubuntu, windows, macos ]
29+
release: [ stable, nightly ]
30+
runs-on: ${{ format('{0}-latest', matrix.os) }}
3031
steps:
3132
- name: Checkout GitHub repo
32-
uses: actions/checkout@v2
33+
uses: actions/checkout@v4
34+
- name: Remove driver directories Windows
35+
if: matrix.os == 'windows'
36+
run: |
37+
rm "$env:ChromeWebDriver" -r -v
38+
rm "$env:EdgeWebDriver" -r -v
39+
rm "$env:GeckoWebDriver" -r -v
40+
- name: Remove driver directories Non-Windows
41+
if: matrix.os != 'windows'
42+
run: |
43+
sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER
3344
- name: Start Xvfb
34-
if: matrix.os == 'ubuntu-latest'
45+
if: matrix.os == 'ubuntu'
3546
run: Xvfb :99 &
36-
- name: Set up .Net
37-
uses: actions/setup-dotnet@v2
47+
- name: Set up .Net Stable
48+
if: matrix.release == 'stable'
49+
uses: actions/setup-dotnet@v4
3850
with:
39-
dotnet-version: 5.0.x
40-
- name: Install Chrome
41-
uses: browser-actions/setup-chrome@latest
42-
- name: Install Edge
43-
uses: browser-actions/setup-edge@latest
44-
- name: Install Firefox
45-
uses: abhi1693/[email protected]
51+
dotnet-version: 8.x
52+
- name: Set up .Net Nightly
53+
if: matrix.release == 'nightly'
54+
uses: actions/setup-dotnet@v4
4655
with:
47-
browser: firefox
48-
version: latest
56+
dotnet-version: 8.x
57+
source-url: https://nuget.pkg.github.com/seleniumhq/index.json
58+
env:
59+
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
60+
- name: Update Nightly version non-Windows
61+
if: matrix.release == 'nightly' && matrix.os != 'windows'
62+
run:
63+
|
64+
pip install -r ./scripts/requirements.txt
65+
latest_nightly=$(python ./scripts/latest-nightly-version.py nuget Selenium.WebDriver)
66+
echo $latest_nightly
67+
dotnet add examples/dotnet/SeleniumDocs/SeleniumDocs.csproj package Selenium.WebDriver --version $latest_nightly
68+
dotnet add examples/dotnet/SeleniumDocs/SeleniumDocs.csproj package Selenium.Support --version $latest_nightly
69+
env:
70+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
- name: Update Nightly version Windows
72+
if: matrix.release == 'nightly' && matrix.os == 'windows'
73+
shell: pwsh
74+
run:
75+
|
76+
pip install -r ./scripts/requirements.txt
77+
$latest_nightly = python ./scripts/latest-nightly-version.py nuget Selenium.WebDriver
78+
dotnet add examples/dotnet/SeleniumDocs/SeleniumDocs.csproj package Selenium.WebDriver --version $latest_nightly
79+
dotnet add examples/dotnet/SeleniumDocs/SeleniumDocs.csproj package Selenium.Support --version $latest_nightly
80+
env:
81+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
- name: Set up Java
83+
uses: actions/setup-java@v4
84+
with:
85+
distribution: 'temurin'
86+
java-version: 11
4987
- name: Run tests
50-
uses: nick-invision/retry@v2.8.2
88+
uses: nick-fields/retry@v3.0.2
5189
with:
5290
timeout_minutes: 20
5391
max_attempts: 3

.github/workflows/java-examples.yml

Lines changed: 56 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,74 @@ env:
2121
GH_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }}
2222

2323
jobs:
24-
test_examples:
24+
tests:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
os: [ ubuntu-latest, windows-latest, macos-latest ]
29-
runs-on: ${{ matrix.os }}
28+
os: [ ubuntu, windows, macos ]
29+
release: [ stable, nightly ]
30+
runs-on: ${{ format('{0}-latest', matrix.os) }}
3031
steps:
3132
- name: Checkout GitHub repo
32-
uses: actions/checkout@v2
33+
uses: actions/checkout@v4
34+
- name: Remove driver directories Windows
35+
if: matrix.os == 'windows'
36+
run: |
37+
rm "$env:ChromeWebDriver" -r -v
38+
rm "$env:EdgeWebDriver" -r -v
39+
rm "$env:GeckoWebDriver" -r -v
40+
- name: Remove driver directories Non-Windows
41+
if: matrix.os != 'windows'
42+
run: |
43+
sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER
3344
- name: Start Xvfb
34-
if: matrix.os == 'ubuntu-latest'
45+
if: matrix.os == 'ubuntu'
3546
run: Xvfb :99 &
3647
- name: Set up Java
37-
uses: actions/setup-java@v2
48+
id: java
49+
uses: actions/setup-java@v4
3850
with:
3951
distribution: 'temurin'
40-
java-version: 8
41-
- name: Install Chrome
42-
uses: browser-actions/setup-chrome@latest
43-
- name: Install Edge
44-
uses: browser-actions/setup-edge@latest
45-
- name: Install Firefox
46-
uses: abhi1693/[email protected]
52+
java-version: 17
53+
- name: Import test cert non-Windows
54+
if: matrix.os != 'windows'
55+
run: sudo keytool -import -noprompt -trustcacerts -alias SeleniumHQ -file examples/java/src/test/resources/tls.crt -keystore ${{ steps.java.outputs.path }}/lib/security/cacerts -storepass changeit
56+
- name: Import test cert Windows
57+
if: matrix.os == 'windows'
58+
run: keytool -import -noprompt -trustcacerts -alias SeleniumHQ -file examples/java/src/test/resources/tls.crt -keystore ${{ steps.java.outputs.path }}/lib/security/cacerts -storepass changeit
59+
- name: Run Tests Stable
60+
if: matrix.release == 'stable'
61+
uses: nick-invision/[email protected]
4762
with:
48-
browser: firefox
49-
version: latest
50-
- name: Run Tests
51-
uses: nick-invision/[email protected]
63+
timeout_minutes: 40
64+
max_attempts: 3
65+
command: |
66+
cd examples/java
67+
mvn -B test -D"jdk.internal.httpclient.disableHostnameVerification=true"
68+
- name: Run Tests Nightly Linux/macOS
69+
if: matrix.release == 'nightly' && matrix.os != 'windows'
70+
uses: nick-invision/[email protected]
71+
with:
72+
timeout_minutes: 40
73+
max_attempts: 3
74+
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+
82+
- name: Run Tests Nightly Windows
83+
if: matrix.release == 'nightly' && matrix.os == 'windows'
84+
uses: nick-invision/[email protected]
5285
with:
53-
timeout_minutes: 20
86+
timeout_minutes: 40
5487
max_attempts: 3
5588
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"
5693
cd examples/java
57-
mvn -B test
94+
mvn -B -U test -D"jdk.internal.httpclient.disableHostnameVerification=true"

0 commit comments

Comments
 (0)