Skip to content

Commit 2e50bdc

Browse files
authored
Merge branch 'trunk' into py-add-host-to-connection-util
2 parents a7a71a0 + 5e73df4 commit 2e50bdc

File tree

77 files changed

+1375
-967
lines changed

Some content is hidden

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

77 files changed

+1375
-967
lines changed

.github/label-commenter-config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ labels:
117117
This is related to code in the Support packages. The support packages contain example code that
118118
many users find helpful, but they do not necessarily represent the best practices for using Selenium,
119119
and the Selenium team is not prioritizing work on them right now.
120-
This doesn't mean that we won't ever work on them, but it is not on our roadmap as we push to release Selenium 5.
120+
This doesn't mean that we won't ever work on them, but it is not on our long term roadmap.
121121
122122
We actively encourage people to create their own wrapper and helper code that makes sense for them.
123123
If you have any questions, please [contact us](https://www.selenium.dev/support)
@@ -127,10 +127,12 @@ labels:
127127
128128
The support packages contain example code that many users find helpful, but they do not necessarily represent
129129
the best practices for using Selenium, and the Selenium team is not currently merging changes to them.
130+
131+
After reviewing the change, unless it is a critical fix or a feature that is needed for Selenium
132+
to work, we will likely close the PR.
130133
131134
We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks.
132135
If you have any questions, please [contact us](https://www.selenium.dev/support)
133-
action: close
134136
135137
136138

.github/renovate.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
11
{
2-
"labels": ["B-dependencies"]
2+
"labels": [
3+
"B-dependencies"
4+
],
5+
"docker": {
6+
"enabled": false
7+
},
8+
"packageRules": [
9+
{
10+
"matchDatasources": [
11+
"docker"
12+
],
13+
"enabled": false
14+
},
15+
{
16+
"matchPackagePatterns": [
17+
"^docker:",
18+
"^gcr.io/",
19+
"^registry.k8s.io/",
20+
"^quay.io/",
21+
"^ghcr.io/"
22+
],
23+
"enabled": false
24+
}
25+
]
326
}

.github/workflows/ci-python.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
- name: Checkout source tree
2222
uses: actions/checkout@v4
2323
- name: Set up Python 3.9
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v6
2525
with:
2626
python-version: 3.9
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
30-
pip install tox==4.27.0
30+
pip install tox==4.30.2
3131
- name: Generate docs
3232
run: tox -c py/tox.ini
3333
env:
@@ -41,13 +41,13 @@ jobs:
4141
- name: Checkout source tree
4242
uses: actions/checkout@v4
4343
- name: Set up Python 3.9
44-
uses: actions/setup-python@v4
44+
uses: actions/setup-python@v6
4545
with:
4646
python-version: 3.9
4747
- name: Install dependencies
4848
run: |
4949
python -m pip install --upgrade pip
50-
pip install tox==4.27.0
50+
pip install tox==4.30.2
5151
- name: Run type checking
5252
run: |
5353
tox -c py/tox.ini || true

.github/workflows/update-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
distribution: 'temurin'
6969
- name: Set up Python 3.9
7070
if: ${{ inputs.language == 'py' || inputs.language == 'all' }}
71-
uses: actions/setup-python@v5
71+
uses: actions/setup-python@v6
7272
with:
7373
python-version: 3.9
7474
- name: Install dependencies

MODULE.bazel

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ bazel_dep(name = "rules_cc", version = "0.2.0", dev_dependency = True)
1919

2020
bazel_dep(name = "rules_dotnet", version = "0.17.5")
2121
bazel_dep(name = "rules_java", version = "8.7.1")
22-
bazel_dep(name = "rules_jvm_external", version = "6.6")
22+
bazel_dep(name = "rules_jvm_external", version = "6.8")
2323
bazel_dep(name = "rules_multitool", version = "1.3.0")
2424
bazel_dep(name = "rules_nodejs", version = "6.3.2")
2525
bazel_dep(name = "rules_oci", version = "1.8.0")
@@ -29,12 +29,10 @@ bazel_dep(name = "rules_proto", version = "7.0.2")
2929
bazel_dep(name = "rules_ruby", version = "0.19.0")
3030

3131
# Until `rules_jvm_external` 6.8 ships
32-
git_override(
32+
single_version_override(
3333
module_name = "rules_jvm_external",
34-
commit = "aca619b117c1fe306ffdd20c5f47cc4dbd5effed",
3534
patch_strip = 1,
3635
patches = ["//java:rules_jvm_external_javadoc.patch"],
37-
remote = "https://github.com/bazel-contrib/rules_jvm_external.git",
3836
)
3937

4038
multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool")
@@ -186,6 +184,8 @@ maven.install(
186184
"com.google.auto.service:auto-service:1.1.1",
187185
"com.google.auto.service:auto-service-annotations:1.1.1",
188186
"com.google.googlejavaformat:google-java-format:1.28.0",
187+
"com.google.protobuf:protobuf-java:3.25.5",
188+
"com.google.protobuf.nano:protobuf-javanano:3.1.0",
189189
"com.graphql-java:graphql-java:24.1",
190190
"dev.failsafe:failsafe:3.3.2",
191191
"io.grpc:grpc-context:1.74.0",
@@ -207,14 +207,15 @@ maven.install(
207207
"io.opentelemetry:opentelemetry-sdk-testing",
208208
"io.opentelemetry:opentelemetry-sdk-trace",
209209
"it.ozimov:embedded-redis:0.7.3",
210-
"net.bytebuddy:byte-buddy:1.17.6",
210+
"net.bytebuddy:byte-buddy:1.17.7",
211211
"org.htmlunit:htmlunit-core-js:4.14.0",
212212
"org.apache.commons:commons-exec:1.5.0",
213213
"org.apache.logging.log4j:log4j-core:2.25.1",
214214
"org.assertj:assertj-core:3.27.4",
215215
"org.bouncycastle:bcpkix-jdk18on:1.81",
216216
"org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5",
217217
"org.hsqldb:hsqldb:2.7.4",
218+
"org.jboss.marshalling:jboss-marshalling:2.2.3.Final",
218219
"org.jspecify:jspecify:1.0.0",
219220
"org.junit.jupiter:junit-jupiter-api",
220221
"org.junit.jupiter:junit-jupiter-engine",
@@ -234,7 +235,7 @@ maven.install(
234235
],
235236
boms = [
236237
"io.opentelemetry:opentelemetry-bom:1.53.0",
237-
"io.netty:netty-bom:4.1.121.Final",
238+
"io.netty:netty-bom:4.2.4.Final",
238239
"org.junit:junit-bom:5.13.4",
239240
],
240241
excluded_artifacts = [

common/repositories.bzl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ js_library(
5050

5151
http_archive(
5252
name = "linux_beta_firefox",
53-
url = "https://ftp.mozilla.org/pub/firefox/releases/143.0b2/linux-x86_64/en-US/firefox-143.0b2.tar.xz",
54-
sha256 = "70a8af598dedca123b72422811ec04e5a28060778d4a86622f4ecd400f234a78",
53+
url = "https://ftp.mozilla.org/pub/firefox/releases/143.0b3/linux-x86_64/en-US/firefox-143.0b3.tar.xz",
54+
sha256 = "ea43085f0a47d14a8c088175b489c8af149f59703aec20e6dd2bbf01e36d36fc",
5555
build_file_content = """
5656
load("@aspect_rules_js//js:defs.bzl", "js_library")
5757
package(default_visibility = ["//visibility:public"])
@@ -72,8 +72,8 @@ js_library(
7272

7373
dmg_archive(
7474
name = "mac_beta_firefox",
75-
url = "https://ftp.mozilla.org/pub/firefox/releases/143.0b2/mac/en-US/Firefox%20143.0b2.dmg",
76-
sha256 = "52f9a7a944f857b207bc79f66ae2d600ff8736264d708d6c0fa5138aea664f97",
75+
url = "https://ftp.mozilla.org/pub/firefox/releases/143.0b3/mac/en-US/Firefox%20143.0b3.dmg",
76+
sha256 = "0e392fc487de20c31c4fe66e25473f91ce001dd6e56528409720f7b9934f34e0",
7777
build_file_content = """
7878
load("@aspect_rules_js//js:defs.bzl", "js_library")
7979
package(default_visibility = ["//visibility:public"])
@@ -123,10 +123,10 @@ js_library(
123123

124124
pkg_archive(
125125
name = "mac_edge",
126-
url = "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/4d599f34-3ef7-4f04-bd4b-6f35be25008c/MicrosoftEdge-139.0.3405.102.pkg",
127-
sha256 = "c5edb687ac110cabedf989706a6e9fade4f30375ef194f155fade830fc8837be",
126+
url = "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/95344cbf-d116-4494-8485-b96014e98901/MicrosoftEdge-139.0.3405.119.pkg",
127+
sha256 = "31b3ddce353180a706179d64086ed01b53cfd20a7daea45597a7e9e405fc553f",
128128
move = {
129-
"MicrosoftEdge-139.0.3405.102.pkg/Payload/Microsoft Edge.app": "Edge.app",
129+
"MicrosoftEdge-139.0.3405.119.pkg/Payload/Microsoft Edge.app": "Edge.app",
130130
},
131131
build_file_content = """
132132
load("@aspect_rules_js//js:defs.bzl", "js_library")
@@ -143,8 +143,8 @@ js_library(
143143

144144
deb_archive(
145145
name = "linux_edge",
146-
url = "https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_139.0.3405.102-1_amd64.deb",
147-
sha256 = "ad8e90dec3080065ff64a395bf04a5e9cc6adb8481d4f8829fb6f5a4c5cc7a9b",
146+
url = "https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_139.0.3405.119-1_amd64.deb",
147+
sha256 = "e51e4e36cde5e7be2031fd9145ac9bf26444f734a88ff43858e05c7782e60c7b",
148148
build_file_content = """
149149
load("@aspect_rules_js//js:defs.bzl", "js_library")
150150
package(default_visibility = ["//visibility:public"])
@@ -165,8 +165,8 @@ js_library(
165165

166166
http_archive(
167167
name = "linux_edgedriver",
168-
url = "https://msedgedriver.microsoft.com/139.0.3405.102/edgedriver_linux64.zip",
169-
sha256 = "e092178901c011ccfddc0556193742a01f206d71b5bb1a12cc1ba7a243262fc2",
168+
url = "https://msedgedriver.microsoft.com/139.0.3405.111/edgedriver_linux64.zip",
169+
sha256 = "76f1c0e35120e37848c174eee1368150b7c2461b8e4907c80bcfc2e61b93c471",
170170
build_file_content = """
171171
load("@aspect_rules_js//js:defs.bzl", "js_library")
172172
package(default_visibility = ["//visibility:public"])
@@ -182,8 +182,8 @@ js_library(
182182

183183
http_archive(
184184
name = "mac_edgedriver",
185-
url = "https://msedgedriver.microsoft.com/139.0.3405.102/edgedriver_mac64.zip",
186-
sha256 = "98aa637081061ea610c1f70be09fdea6b5f5b3a46c94a87ca291e2285bad1328",
185+
url = "https://msedgedriver.microsoft.com/139.0.3405.111/edgedriver_mac64.zip",
186+
sha256 = "c97588078c6f661dd6c66b858f5e21dc9cbcee40420a2b2e839a05803e0e468f",
187187
build_file_content = """
188188
load("@aspect_rules_js//js:defs.bzl", "js_library")
189189
package(default_visibility = ["//visibility:public"])

common/src/web/data_url.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Page containing an image encoded as a Data URL</title>
6+
</head>
7+
<body>
8+
<img src="data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7" alt="star" id="data-url-image">
9+
</body>
10+
</html>

dotnet/src/webdriver/BUILD.bazel

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,14 @@ copy_file(
168168
)
169169

170170
copy_file(
171-
name = "assets-nuget-build-netstandard20-targets",
172-
src = "//dotnet/src/webdriver/assets:nuget/build/netstandard2.0/Selenium.WebDriver.targets",
171+
name = "assets-nuget-build-targets",
172+
src = "//dotnet/src/webdriver/assets:nuget/build/Selenium.WebDriver.targets",
173173
out = "Selenium.WebDriver.targets",
174174
)
175175

176176
copy_file(
177-
name = "assets-nuget-buildtransitive-netstandard20-targets",
178-
src = "//dotnet/src/webdriver/assets:nuget/buildTransitive/netstandard2.0/Selenium.WebDriver.targets",
177+
name = "assets-nuget-buildtransitive-targets",
178+
src = "//dotnet/src/webdriver/assets:nuget/buildTransitive/Selenium.WebDriver.targets",
179179
out = "transitiveSelenium.WebDriver.targets",
180180
)
181181

@@ -208,8 +208,8 @@ nuget_pack(
208208
"//common/manager:selenium-manager-macos": "manager/macos/selenium-manager",
209209
"//common/manager:selenium-manager-windows": "manager/windows/selenium-manager.exe",
210210
":assets-nuget-readme": "README.md",
211-
":assets-nuget-build-netstandard20-targets": "build/netstandard2.0/Selenium.WebDriver.targets",
212-
":assets-nuget-buildtransitive-netstandard20-targets": "buildTransitive/netstandard2.0/Selenium.WebDriver.targets",
211+
":assets-nuget-build-targets": "build/Selenium.WebDriver.targets",
212+
":assets-nuget-buildtransitive-targets": "buildTransitive/Selenium.WebDriver.targets",
213213
},
214214
id = "Selenium.WebDriver",
215215
libs = {
@@ -234,8 +234,8 @@ nuget_pack(
234234
"//common/manager:selenium-manager-macos": "manager/macos/selenium-manager",
235235
"//common/manager:selenium-manager-windows": "manager/windows/selenium-manager.exe",
236236
":assets-nuget-readme": "README.md",
237-
":assets-nuget-build-netstandard20-targets": "build/netstandard2.0/Selenium.WebDriver.StrongNamed.targets",
238-
":assets-nuget-buildtransitive-netstandard20-targets": "buildTransitive/netstandard2.0/Selenium.WebDriver.StrongNamed.targets",
237+
":assets-nuget-build-targets": "build/Selenium.WebDriver.StrongNamed.targets",
238+
":assets-nuget-buildtransitive-targets": "buildTransitive/Selenium.WebDriver.StrongNamed.targets",
239239
},
240240
id = "Selenium.WebDriver.StrongNamed",
241241
libs = {

dotnet/src/webdriver/BiDi/Communication/Broker.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ internal Broker(BiDi bidi, Uri url)
8484
new RealmConverter(_bidi),
8585
new RealmTypeConverter(),
8686
new DateTimeOffsetConverter(),
87-
new TimeSpanConverter(),
8887
new PrintPageRangeConverter(),
8988
new InputOriginConverter(),
9089
new WebExtensionConverter(_bidi),

dotnet/src/webdriver/BiDi/Communication/Json/Converters/DateTimeOffsetConverter.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,24 @@ internal class DateTimeOffsetConverter : JsonConverter<DateTimeOffset>
2727
{
2828
public override DateTimeOffset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
2929
{
30-
return DateTimeOffset.FromUnixTimeMilliseconds(reader.GetInt64());
30+
return DateTimeOffset.FromUnixTimeMilliseconds((long)reader.GetDouble()); // still might get a double
3131
}
3232

3333
public override void Write(Utf8JsonWriter writer, DateTimeOffset value, JsonSerializerOptions options)
3434
{
3535
writer.WriteNumberValue(value.ToUnixTimeMilliseconds());
3636
}
3737
}
38+
39+
internal class DateTimeOffsetSecondsConverter : JsonConverter<DateTimeOffset>
40+
{
41+
public override DateTimeOffset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
42+
{
43+
return DateTimeOffset.FromUnixTimeSeconds((long)reader.GetDouble()); // still might get a double
44+
}
45+
46+
public override void Write(Utf8JsonWriter writer, DateTimeOffset value, JsonSerializerOptions options)
47+
{
48+
writer.WriteNumberValue(value.ToUnixTimeSeconds());
49+
}
50+
}

0 commit comments

Comments
 (0)