Skip to content

Commit 0937b15

Browse files
authored
Merge branch 'trunk' into renovate/slf4j-monorepo
2 parents 7c31c62 + 2cc2ae5 commit 0937b15

File tree

16 files changed

+94
-16
lines changed

16 files changed

+94
-16
lines changed

examples/dotnet/SeleniumDocs/SeleniumDocs.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<ItemGroup>
99
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
1010
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.7.1" />
11-
<PackageReference Include="MSTest.TestAdapter" Version="3.5.1" />
12-
<PackageReference Include="MSTest.TestFramework" Version="3.5.1" />
11+
<PackageReference Include="MSTest.TestAdapter" Version="3.5.2" />
12+
<PackageReference Include="MSTest.TestFramework" Version="3.5.2" />
1313
<PackageReference Include="Selenium.Support" Version="4.23.0" />
1414
<PackageReference Include="Selenium.WebDriver" Version="4.23.0" />
1515
</ItemGroup>

examples/java/build.gradle

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

1212
dependencies {
1313
testImplementation 'org.seleniumhq.selenium:selenium-java:4.23.1'
14-
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.10.3'
14+
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.0'
1515
}
1616

1717
test {
79 Bytes
Binary file not shown.

examples/java/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

examples/java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<dependency>
4141
<groupId>org.junit.jupiter</groupId>
4242
<artifactId>junit-jupiter-engine</artifactId>
43-
<version>5.10.3</version>
43+
<version>5.11.0</version>
4444
<scope>test</scope>
4545
</dependency>
4646
<dependency>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
const Chrome = require('selenium-webdriver/chrome');
2+
const {Browser, Builder} = require("selenium-webdriver");
3+
const {getBinaryPaths} = require("selenium-webdriver/common/driverFinder");
4+
const options = new Chrome.Options();
5+
6+
describe('Service Test', function () {
7+
it('Default service', async function () {
8+
let service = new Chrome.ServiceBuilder()
9+
10+
let driver = new Builder()
11+
.forBrowser(Browser.CHROME)
12+
.setChromeService(service)
13+
.build();
14+
15+
await driver.get('https://www.selenium.dev/selenium/web/blank.html');
16+
await driver.quit();
17+
});
18+
19+
it('Set Driver Location', async function () {
20+
21+
let options = new Chrome.Options();
22+
options.setBrowserVersion("stable")
23+
24+
let paths = getBinaryPaths(options)
25+
let driverPath = paths.driverPath;
26+
let browserPath = paths.browserPath;
27+
28+
options.setChromeBinaryPath(browserPath)
29+
30+
let service = new Chrome.ServiceBuilder().setPath(driverPath)
31+
32+
let driver = new Builder()
33+
.forBrowser(Browser.CHROME)
34+
.setChromeOptions(options)
35+
.setChromeService(service)
36+
.build();
37+
38+
await driver.get('https://www.selenium.dev/selenium/web/blank.html');
39+
await driver.quit();
40+
});
41+
42+
it('Set port', async function () {
43+
let service = new Chrome.ServiceBuilder().setPort(1234)
44+
45+
let driver = new Builder()
46+
.forBrowser(Browser.CHROME)
47+
.setChromeService(service)
48+
.build();
49+
50+
await driver.get('https://www.selenium.dev/selenium/web/blank.html');
51+
await driver.quit();
52+
});
53+
});

examples/kotlin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<slf4j.version>2.0.16</slf4j.version>
1515
<logback.version>1.5.6</logback.version>
1616

17-
<junit5.version>5.10.3</junit5.version>
17+
<junit5.version>5.11.0</junit5.version>
1818
<wdm.version>5.2.3</wdm.version>
1919

2020
<maven-surefire-plugin.version>3.3.1</maven-surefire-plugin.version>

examples/ruby/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ gem 'rake', '~> 13.0'
77
gem 'rspec', '~> 3.0'
88
gem 'rubocop', '~> 1.35'
99
gem 'rubocop-rspec', '~> 3.0'
10-
gem 'selenium-devtools', '= 0.126.0'
10+
gem 'selenium-devtools', '= 0.127.0'
1111
gem 'selenium-webdriver', '= 4.23.0'

examples/ruby/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ GEM
4747
rubocop (~> 1.61)
4848
ruby-progressbar (1.13.0)
4949
rubyzip (2.3.2)
50-
selenium-devtools (0.126.0)
50+
selenium-devtools (0.127.0)
5151
selenium-webdriver (~> 4.2)
5252
selenium-webdriver (4.23.0)
5353
base64 (~> 0.2)
@@ -72,7 +72,7 @@ DEPENDENCIES
7272
rspec (~> 3.0)
7373
rubocop (~> 1.35)
7474
rubocop-rspec (~> 3.0)
75-
selenium-devtools (= 0.126.0)
75+
selenium-devtools (= 0.127.0)
7676
selenium-webdriver (= 4.23.0)
7777

7878
BUNDLED WITH
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "Welcoming Puppeteer to the WebDriver World"
3+
linkTitle: "Welcoming Puppeteer to the WebDriver World"
4+
date: 2024-08-09
5+
tags: ["selenium"]
6+
categories: ["general"]
7+
author: David Burns [@automatedtester](https://www.linkedin.com/in/theautomatedtester/)
8+
description: >
9+
Puppeteer has moved over to support WebDriver BiDi getting full support in Chromium browsers and Firefox.
10+
---
11+
12+
The Selenium Project has always been fully supportive of creating a standard to improve the quality
13+
of the web that we use. We started with the [WebDriver Specification](https://w3c.github.io/webdriver) and over the last couple of years have been working
14+
with the Safari, Edge, Chrome, and Firefox teams on the [WebDriver-BiDi specification](https://w3c.github.io/webdriver-bidi).
15+
16+
Today, we are celebrating that [Puppeteer](https://pptr.dev) has moved over to using [WebDriver-BiDi](https://w3c.github.io/webdriver-bidi), the new WebDriver Specification
17+
that allows WebDriver clients to have event driven APIs instead of the synchronous way Selenium has done it before.
18+
19+
This new protocol allows us to be able to do things Selenium always wanted to do but was never surfaced to us in a
20+
meaningful way. We have documented all the latest additions to Selenium, thanks to WebDriver-BiDi, in our [documentation](https://www.selenium.dev/documentation/webdriver/bidi/)
21+
22+
You can read about the latest changes on [Mozilla Hacks](https://hacks.mozilla.org/2024/08/puppeteer-support-for-firefox/)
23+
and on the [Chrome Developer Blog](https://developer.chrome.com/blog/firefox-support-in-puppeteer-with-webdriver-bidi?hl=en).
24+
25+
Congratulations to everyone in making this a reality and supporting a standardised web!

website_and_docs/content/documentation/webdriver/getting_started/install_library.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Installation of Selenium libraries for Java is accomplished using a build tool.
2727
### Maven
2828
Specify the dependencies in the project's `pom.xml` file:
2929

30-
{{< gh-codeblock path="examples/java/pom.xml#L29-L33" >}}
30+
{{< gh-codeblock path="examples/java/pom.xml#L30-L34" >}}
3131

3232
### Gradle
3333
Specify the dependency in the project `build.gradle` file as `testImplementation`:

website_and_docs/content/documentation/webdriver/getting_started/install_library.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Installation of Selenium libraries for Java is accomplished using a build tool.
2525
### Maven
2626
Specify the dependencies in the project's `pom.xml` file:
2727

28-
{{< gh-codeblock path="examples/java/pom.xml#L29-L33" >}}
28+
{{< gh-codeblock path="examples/java/pom.xml#L30-L34" >}}
2929

3030
### Gradle
3131
Specify the dependency in the project `build.gradle` file as `testImplementation`:

website_and_docs/content/documentation/webdriver/getting_started/install_library.pt-br.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ A instalação da biblioteca Selenium para Java é feita a partir de uma build t
2727
### Maven
2828
Especifique a dependência no `pom.xml` do seu projeto.
2929

30-
{{< gh-codeblock path="examples/java/pom.xml#L29-L33" >}}
30+
{{< gh-codeblock path="examples/java/pom.xml#L30-L34" >}}
3131

3232
### Gradle
3333
Especifique a dependência no `build.gradle` do seu projeto como `testImplementation`:

website_and_docs/content/documentation/webdriver/getting_started/install_library.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ aliases: [
2525
### Maven
2626
具体的依赖位于项目中的 `pom.xml` 文件:
2727

28-
{{< gh-codeblock path="examples/java/pom.xml#L29-L33" >}}
28+
{{< gh-codeblock path="examples/java/pom.xml#L30-L34" >}}
2929

3030
### Gradle
3131
具体的依赖位于项目中的 `build.gradle` 文件中的 `testImplementation`:

website_and_docs/layouts/downloads/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<div class="card-body">
2626
<p class="card-text">
2727
Latest stable version
28-
<a href="https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.23.0/selenium-server-4.23.0.jar">4.23.0</a>
28+
<a href="https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.23.0/selenium-server-4.23.1.jar">4.23.1</a>
2929
</p>
3030
<p class="card-text">
3131
To use the Selenium Server in a Grid configuration see the

website_and_docs/layouts/partials/selenium-clients-and-webdriver-bindings.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ <h2 id="bindings" class="card-title">Selenium Clients and WebDriver Language Bin
8282
</p>
8383
<p class="card-text m-0 pb-1">
8484
Stable:
85-
<a href="https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.23.0/selenium-java-4.23.0.zip" class="card-link">
86-
4.23.0 (July 19, 2024)
85+
<a href="https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.23.0/selenium-java-4.23.1.zip" class="card-link">
86+
4.23.1 (August 09, 2024)
8787
</a>
8888
</p>
8989
<p class="card-text m-0 pb-1">

0 commit comments

Comments
 (0)