Skip to content

Commit 680a027

Browse files
authored
Merge branch 'trunk' into trunk
2 parents 5635101 + a30e576 commit 680a027

File tree

63 files changed

+483
-340
lines changed

Some content is hidden

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

63 files changed

+483
-340
lines changed

.github/workflows/dotnet-examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/js-examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ jobs:
4646
run: Xvfb :99 &
4747
- name: Setup Node Stable
4848
if: matrix.release == 'stable'
49-
uses: actions/setup-node@v5
49+
uses: actions/setup-node@v6
5050
with:
5151
node-version: '22.x'
5252
- name: Setup Node Nightly
5353
if: matrix.release == 'nightly'
54-
uses: actions/setup-node@v5
54+
uses: actions/setup-node@v6
5555
with:
5656
node-version: '22.x'
5757
registry-url: 'https://npm.pkg.github.com'

.github/workflows/link-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
extended: true
3030

3131
- name: Setup Node
32-
uses: actions/setup-node@v5
32+
uses: actions/setup-node@v6
3333
with:
34-
node-version: '22.20.0'
34+
node-version: '22.21.1'
3535
cache: 'npm'
3636
# The action defaults to search for the dependency file (package-lock.json,
3737
# npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its
@@ -51,7 +51,7 @@ jobs:
5151
args: website_and_docs/public/ --check-anchors
5252

5353
- name: Archive hyperlink results
54-
uses: actions/upload-artifact@v4
54+
uses: actions/upload-artifact@v5
5555
with:
5656
name: hyperlink-report
5757
path: website_and_docs/tmp/.hyperlink/hyperlink.log

.github/workflows/python-examples.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ 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

.github/workflows/ruby-examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Set up Ruby
5252
uses: ruby/setup-ruby@v1
5353
with:
54-
ruby-version: 3.2
54+
ruby-version: 3.4.7
5555
bundler-cache: true
5656
- name: Install Gems Nightly non-Windows
5757
if: matrix.release == 'nightly' && matrix.os != 'windows'
@@ -119,7 +119,7 @@ jobs:
119119
- name: Set up Ruby
120120
uses: ruby/setup-ruby@v1
121121
with:
122-
ruby-version: 3.2
122+
ruby-version: 3.4.7
123123
bundler-cache: true
124124
- name: Install dependencies
125125
working-directory: ./examples/ruby

examples/dotnet/README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Running Selenium .NET (C#) Tests
2+
3+
The following steps will guide you on how to
4+
run Selenium .NET (C#) tests using the examples
5+
from the `SeleniumHQ/seleniumhq.github.io` repository.
6+
7+
## Initial Setup
8+
9+
### Prerequisites
10+
11+
Ensure you have the following installed:
12+
13+
- [.NET SDK (8.0 or later)](https://dotnet.microsoft.com/en-us/download)
14+
- An IDE like [Visual Studio](https://visualstudio.microsoft.com/) or [Visual Studio Code](https://code.visualstudio.com/)
15+
- [.NET CLI tools](https://learn.microsoft.com/en-us/dotnet/core/tools/)
16+
17+
### Clone the repository
18+
19+
Clone the Selenium documentation repository to your local machine:
20+
21+
```bash
22+
git clone https://github.com/SeleniumHQ/seleniumhq.github.io.git
23+
```
24+
25+
## Navigate to the .NET directory
26+
### Change into the .NET examples directory:
27+
28+
```bash
29+
cd seleniumhq.github.io/examples/dotnet/SeleniumDocs
30+
```
31+
32+
## Running the Tests
33+
### Restore dependencies
34+
Install necessary dependencies using the .NET CLI:
35+
36+
```bash
37+
dotnet restore
38+
```
39+
40+
### Run all tests
41+
To run all available tests:
42+
43+
```bash
44+
dotnet test
45+
```
46+
47+
### Run a Specific Test Method
48+
To run a specific test method using its fully qualified name:
49+
50+
```bash
51+
dotnet test --filter "FullyQualifiedName=Namespace.ClassName.MethodName"
52+
```
53+
For example:
54+
```bash
55+
dotnet test --filter "FullyQualifiedName=SeleniumDocs.GettingStarted.UsingSeleniumTest.EightComponents"
56+
```
57+
58+
You can also filter by test name only (if it's unique):
59+
```bash
60+
dotnet test --filter "Name=EightComponents"
61+
```

examples/dotnet/SeleniumDocs/BaseTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class BaseTest
1717
protected IWebDriver driver;
1818
protected Uri GridUrl;
1919
private Process _webserverProcess;
20-
private const string ServerJarName = "selenium-server-4.35.0.jar";
20+
private const string ServerJarName = "selenium-server-4.38.0.jar";
2121
private static readonly string BaseDirectory = AppContext.BaseDirectory;
2222
private const string RelativePathToGrid = "../../../../../";
2323
private readonly string _examplesDirectory = Path.GetFullPath(Path.Combine(BaseDirectory, RelativePathToGrid));

examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
using OpenQA.Selenium;
55
using OpenQA.Selenium.DevTools;
66
using System.Linq;
7-
using OpenQA.Selenium.DevTools.V137.Network;
8-
using OpenQA.Selenium.DevTools.V137.Performance;
7+
using OpenQA.Selenium.DevTools.V142.Network;
8+
using OpenQA.Selenium.DevTools.V142.Performance;
99

1010

1111
namespace SeleniumDocs.BiDi.CDP
@@ -16,7 +16,7 @@ public class NetworkTest : BaseTest
1616
[TestInitialize]
1717
public void Startup()
1818
{
19-
StartDriver("137");
19+
StartDriver("142");
2020
}
2121

2222
[TestMethod]
@@ -109,9 +109,9 @@ public async Task PerformanceMetrics()
109109
driver.Url = "https://www.selenium.dev/selenium/web/frameset.html";
110110

111111
var session = ((IDevTools)driver).GetDevToolsSession();
112-
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V137.DevToolsSessionDomains>();
112+
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V142.DevToolsSessionDomains>();
113113

114-
await domains.Performance.Enable(new OpenQA.Selenium.DevTools.V137.Performance.EnableCommandSettings());
114+
await domains.Performance.Enable(new OpenQA.Selenium.DevTools.V142.Performance.EnableCommandSettings());
115115
var metricsResponse =
116116
await session.SendCommand<GetMetricsCommandSettings, GetMetricsCommandResponse>(
117117
new GetMetricsCommandSettings()
@@ -130,8 +130,8 @@ await session.SendCommand<GetMetricsCommandSettings, GetMetricsCommandResponse>(
130130
public async Task SetCookie()
131131
{
132132
var session = ((IDevTools)driver).GetDevToolsSession();
133-
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V137.DevToolsSessionDomains>();
134-
await domains.Network.Enable(new OpenQA.Selenium.DevTools.V137.Network.EnableCommandSettings());
133+
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V142.DevToolsSessionDomains>();
134+
await domains.Network.Enable(new OpenQA.Selenium.DevTools.V142.Network.EnableCommandSettings());
135135

136136
var cookieCommandSettings = new SetCookieCommandSettings
137137
{

examples/dotnet/SeleniumDocs/SeleniumDocs.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.7.1" />
1111
<PackageReference Include="MSTest.TestAdapter" Version="3.6.0" />
1212
<PackageReference Include="MSTest.TestFramework" Version="3.6.0" />
13-
<PackageReference Include="Selenium.Support" Version="4.35.0" />
14-
<PackageReference Include="Selenium.WebDriver" Version="4.35.0" />
13+
<PackageReference Include="Selenium.Support" Version="4.38.0" />
14+
<PackageReference Include="Selenium.WebDriver" Version="4.38.0" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

examples/java/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repositories {
1010
}
1111

1212
dependencies {
13-
testImplementation 'org.seleniumhq.selenium:selenium-java:4.35.0'
13+
testImplementation 'org.seleniumhq.selenium:selenium-java:4.38.0'
1414
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.13.4'
1515
}
1616

0 commit comments

Comments
 (0)