Skip to content

Commit f8395df

Browse files
authored
Merge branch 'trunk' into renovate/gradle-8.x
2 parents 0a92fa8 + 861cdfc commit f8395df

File tree

7 files changed

+65
-41
lines changed

7 files changed

+65
-41
lines changed

.github/workflows/js-examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ jobs:
8282
if: matrix.release == 'stable'
8383
uses: actions/setup-node@v4
8484
with:
85-
node-version: '18.x'
85+
node-version: '22.x'
8686
- name: Setup Node Nightly
8787
if: matrix.release == 'nightly'
8888
uses: actions/setup-node@v4
8989
with:
90-
node-version: '18.x'
90+
node-version: '22.x'
9191
registry-url: 'https://npm.pkg.github.com'
9292
- name: Use Nightly package.json in Ubuntu/macOS
9393
if: matrix.release == 'nightly' && matrix.os != 'windows'

examples/java/src/test/java/dev/selenium/drivers/HttpClientTest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,30 @@ public void remoteWebDriverIgnoreSSL() throws Exception {
7070
driver.quit();
7171
}
7272

73+
@Test
74+
public void remoteWebDriverWithEmbedAuthUrl() throws Exception {
75+
ClientConfig clientConfig = ClientConfig.defaultConfig()
76+
.withRetries()
77+
.sslContext(createSSLContextWithCA(Path.of("src/test/resources/tls.crt").toAbsolutePath().toString()))
78+
.connectionTimeout(Duration.ofSeconds(300))
79+
.readTimeout(Duration.ofSeconds(3600))
80+
.version(HTTP_1_1.toString());
81+
ChromeOptions options = new ChromeOptions();
82+
options.setEnableDownloads(true);
83+
driver = RemoteWebDriver.builder()
84+
.oneOf(options)
85+
.address(embedAuthToUrl(gridUrl, "admin", "myStrongPassword"))
86+
.config(clientConfig)
87+
.build();
88+
driver.quit();
89+
}
90+
91+
private URL embedAuthToUrl(URL url, String username, String password) throws Exception {
92+
String userInfo = username + ":" + password;
93+
String urlWithAuth = url.getProtocol() + "://" + userInfo + "@" + url.getHost() + ":" + url.getPort() + url.getPath();
94+
return new URL(urlWithAuth);
95+
}
96+
7397
public static SSLContext createSSLContextWithCA(String caCertPath) throws Exception {
7498
FileInputStream fis = new FileInputStream(caCertPath);
7599
CertificateFactory cf = CertificateFactory.getInstance("X.509");

netlify.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ publish = "website_and_docs/public"
33
command = "chmod +x build-site.sh && ./build-site.sh"
44

55
[context.production.environment]
6-
NODE_VERSION = "18.14.1"
6+
NODE_VERSION = "22.13.0"
77
HUGO_VERSION = "0.125.4"
88
GO_VERSION = "1.20.1"
99
HUGO_ENV = "production"
@@ -12,14 +12,14 @@ HUGO_ENV = "production"
1212
command = "chmod +x build-site.sh && ./build-site.sh"
1313

1414
[context.deploy-preview.environment]
15-
NODE_VERSION = "18.14.1"
15+
NODE_VERSION = "22.13.0"
1616
HUGO_VERSION = "0.125.4"
1717
GO_VERSION = "1.20.1"
1818

1919
[context.branch-deploy]
2020
command = "chmod +x build-site.sh && ./build-site.sh"
2121

2222
[context.branch-deploy.environment]
23-
NODE_VERSION = "18.14.1"
23+
NODE_VERSION = "22.13.0"
2424
HUGO_VERSION = "0.125.4"
2525
GO_VERSION = "1.20.1"

website_and_docs/content/documentation/webdriver/interactions/print_page.en.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the
2020

2121
{{< tabpane text=true >}}
2222
{{< tab header="Java" >}}
23-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L12-L18" >}}
23+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L14-L17" >}}
2424
{{< /tab >}}
2525
{{< tab header="CSharp" >}}
2626
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L12-L19" >}}
@@ -44,7 +44,7 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r
4444

4545
{{< tabpane text=true >}}
4646
{{< tab header="Java" >}}
47-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L21-L27" >}}
47+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L23-L26" >}}
4848
{{< /tab >}}
4949
{{< tab header="CSharp" >}}
5050
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L22-L29" >}}
@@ -68,7 +68,7 @@ Using the `getPageSize()` and `setPageSize()` methods, you can get/set the paper
6868

6969
{{< tabpane text=true >}}
7070
{{< tab header="Java" >}}
71-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L30-L36" >}}
71+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L32-L35" >}}
7272
{{< /tab >}}
7373
{{< tab header="CSharp" >}}
7474
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L32-L38" >}}
@@ -92,7 +92,7 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi
9292

9393
{{< tabpane text=true >}}
9494
{{< tab header="Java" >}}
95-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L40-L49" >}}
95+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L41-L48" >}}
9696
{{< /tab >}}
9797
{{< tab header="CSharp" >}}
9898
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L51-L57" >}}
@@ -116,7 +116,7 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa
116116

117117
{{< tabpane text=true >}}
118118
{{< tab header="Java" >}}
119-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L52-L58" >}}
119+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L53-L57" >}}
120120
{{< /tab >}}
121121
{{< tab header="CSharp" >}}
122122
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L61-L68" >}}
@@ -140,7 +140,7 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b
140140

141141
{{< tabpane text=true >}}
142142
{{< tab header="Java" >}}
143-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L61-L67" >}}
143+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L63-L66" >}}
144144
{{< /tab >}}
145145
{{< tab header="CSharp" >}}
146146
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L41-L48" >}}
@@ -164,7 +164,7 @@ Using `getShrinkToFit()` and `setShrinkToFit()` methods, you can get/set whether
164164

165165
{{< tabpane text=true >}}
166166
{{< tab header="Java" >}}
167-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L70-L76" >}}
167+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L72-L75" >}}
168168
{{< /tab >}}
169169
{{< tab header="CSharp" >}}
170170
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L71-L78" >}}
@@ -200,9 +200,9 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B
200200
{{< tabpane text=true >}}
201201
{{% tab header="Java" %}}
202202
**PrintsPage()**
203-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintsPageTest.java#L25-L32" >}}
203+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintsPageTest.java#L27-L31" >}}
204204
**BrowsingContext()**
205-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintsPageTest.java#L35-L42" >}}
205+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintsPageTest.java#L37-L41" >}}
206206
{{< /tab >}}
207207
{{< tab header="CSharp" >}}
208208
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L81-L88" >}}

website_and_docs/content/documentation/webdriver/interactions/print_page.ja.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the
2020

2121
{{< tabpane text=true >}}
2222
{{< tab header="Java" >}}
23-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L12-L18" >}}
23+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L14-L17" >}}
2424
{{< /tab >}}
2525
{{< tab header="CSharp" >}}
2626
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L12-L19" >}}
@@ -44,7 +44,7 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r
4444

4545
{{< tabpane text=true >}}
4646
{{< tab header="Java" >}}
47-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L21-L27" >}}
47+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L23-L26" >}}
4848
{{< /tab >}}
4949
{{< tab header="CSharp" >}}
5050
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L22-L29" >}}
@@ -68,7 +68,7 @@ Using the `getPageSize()` and `setPageSize()` methods, you can get/set the paper
6868

6969
{{< tabpane text=true >}}
7070
{{< tab header="Java" >}}
71-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L30-L36" >}}
71+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L32-L35" >}}
7272
{{< /tab >}}
7373
{{< tab header="CSharp" >}}
7474
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L32-L38" >}}
@@ -92,7 +92,7 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi
9292

9393
{{< tabpane text=true >}}
9494
{{< tab header="Java" >}}
95-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L40-L49" >}}
95+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L41-L48" >}}
9696
{{< /tab >}}
9797
{{< tab header="CSharp" >}}
9898
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L51-L57" >}}
@@ -116,7 +116,7 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa
116116

117117
{{< tabpane text=true >}}
118118
{{< tab header="Java" >}}
119-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L52-L58" >}}
119+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L53-L57" >}}
120120
{{< /tab >}}
121121
{{< tab header="CSharp" >}}
122122
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L61-L68" >}}
@@ -140,7 +140,7 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b
140140

141141
{{< tabpane text=true >}}
142142
{{< tab header="Java" >}}
143-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L61-L67" >}}
143+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L63-L66" >}}
144144
{{< /tab >}}
145145
{{< tab header="CSharp" >}}
146146
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L41-L48" >}}
@@ -164,7 +164,7 @@ Using `getShrinkToFit()` and `setShrinkToFit()` methods, you can get/set whether
164164

165165
{{< tabpane text=true >}}
166166
{{< tab header="Java" >}}
167-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L70-L76" >}}
167+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L72-L75" >}}
168168
{{< /tab >}}
169169
{{< tab header="CSharp" >}}
170170
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L71-L78" >}}
@@ -200,9 +200,9 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B
200200
{{< tabpane text=true >}}
201201
{{% tab header="Java" %}}
202202
**PrintsPage()**
203-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintsPageTest.java#L25-L32" >}}
203+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintsPageTest.java#L27-L31" >}}
204204
**BrowsingContext()**
205-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintsPageTest.java#L35-L42" >}}
205+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintsPageTest.java#L37-L41" >}}
206206
{{< /tab >}}
207207
{{< tab header="CSharp" >}}
208208
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L81-L88" >}}

website_and_docs/content/documentation/webdriver/interactions/print_page.pt-br.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Using the `getOrientation()` and `setOrientation()` methods, you can get/set the
2020

2121
{{< tabpane text=true >}}
2222
{{< tab header="Java" >}}
23-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L12-L18" >}}
23+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L14-L17" >}}
2424
{{< /tab >}}
2525
{{< tab header="CSharp" >}}
2626
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L12-L19" >}}
@@ -44,7 +44,7 @@ Using the `getPageRanges()` and `setPageRanges()` methods, you can get/set the r
4444

4545
{{< tabpane text=true >}}
4646
{{< tab header="Java" >}}
47-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L21-L27" >}}
47+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L23-L26" >}}
4848
{{< /tab >}}
4949
{{< tab header="CSharp" >}}
5050
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L22-L29" >}}
@@ -68,7 +68,7 @@ Using the `getPageSize()` and `setPageSize()` methods, you can get/set the paper
6868

6969
{{< tabpane text=true >}}
7070
{{< tab header="Java" >}}
71-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L30-L36" >}}
71+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L32-L35" >}}
7272
{{< /tab >}}
7373
{{< tab header="CSharp" >}}
7474
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L32-L38" >}}
@@ -92,7 +92,7 @@ Using the `getPageMargin()` and `setPageMargin()` methods, you can set the margi
9292

9393
{{< tabpane text=true >}}
9494
{{< tab header="Java" >}}
95-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L40-L49" >}}
95+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#41-L48" >}}
9696
{{< /tab >}}
9797
{{< tab header="CSharp" >}}
9898
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L51-L57" >}}
@@ -116,7 +116,7 @@ Using `getScale()` and `setScale()` methods, you can get/set the scale of the pa
116116

117117
{{< tabpane text=true >}}
118118
{{< tab header="Java" >}}
119-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L52-L58" >}}
119+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L53-L57" >}}
120120
{{< /tab >}}
121121
{{< tab header="CSharp" >}}
122122
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L61-L68" >}}
@@ -140,7 +140,7 @@ Using `getBackground()` and `setBackground()` methods, you can get/set whether b
140140

141141
{{< tabpane text=true >}}
142142
{{< tab header="Java" >}}
143-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L61-L67" >}}
143+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L63-L66" >}}
144144
{{< /tab >}}
145145
{{< tab header="CSharp" >}}
146146
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L41-L48" >}}
@@ -164,7 +164,7 @@ Using `getShrinkToFit()` and `setShrinkToFit()` methods, you can get/set whether
164164

165165
{{< tabpane text=true >}}
166166
{{< tab header="Java" >}}
167-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L70-L76" >}}
167+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java#L72-L75" >}}
168168
{{< /tab >}}
169169
{{< tab header="CSharp" >}}
170170
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L71-L78" >}}
@@ -200,9 +200,9 @@ Note: `BrowsingContext()` is part of Selenium's BiDi implementation. To enable B
200200
{{< tabpane text=true >}}
201201
{{% tab header="Java" %}}
202202
**PrintsPage()**
203-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintsPageTest.java#L25-L32" >}}
203+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintsPageTest.java#L27-L31" >}}
204204
**BrowsingContext()**
205-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintsPageTest.java#L35-L42" >}}
205+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/interactions/PrintsPageTest.java#L37-L41" >}}
206206
{{< /tab >}}
207207
{{< tab header="CSharp" >}}
208208
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Interactions/PrintOptionsTest.cs#L81-L88" >}}

0 commit comments

Comments
 (0)