Skip to content

Commit 34286e9

Browse files
authored
Merge branch 'SeleniumHQ:trunk' into py-ruff
2 parents d5f6d35 + f359e61 commit 34286e9

File tree

29 files changed

+4223
-2668
lines changed

29 files changed

+4223
-2668
lines changed

Rakefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,9 @@ namespace :node do
510510

511511
desc 'Generate Node documentation'
512512
task :docs do |_task, arguments|
513-
abort('Aborting documentation update: nightly versions should not update docs.') if node_version.include?('nightly')
513+
if node_version.include?('nightly') && !arguments.to_a.include?('force')
514+
abort('Aborting documentation update: nightly versions should not update docs.')
515+
end
514516

515517
puts 'Generating Node documentation'
516518
FileUtils.rm_rf('build/docs/api/javascript/')
@@ -608,7 +610,7 @@ namespace :py do
608610

609611
desc 'Generate Python documentation'
610612
task :docs do |_task, arguments|
611-
if python_version.match?(/^\d+\.\d+\.\d+\.\d+$/)
613+
if python_version.match?(/^\d+\.\d+\.\d+\.\d+$/) && !arguments.to_a.include?('force')
612614
abort('Aborting documentation update: nightly versions should not update docs.')
613615
end
614616
puts 'Generating Python documentation'
@@ -776,7 +778,9 @@ namespace :rb do
776778

777779
desc 'Generate Ruby documentation'
778780
task :docs do |_task, arguments|
779-
abort('Aborting documentation update: nightly versions should not update docs.') if ruby_version.include?('nightly')
781+
if ruby_version.include?('nightly') && !arguments.to_a.include?('force')
782+
abort('Aborting documentation update: nightly versions should not update docs.')
783+
end
780784
puts 'Generating Ruby documentation'
781785

782786
FileUtils.rm_rf('build/docs/api/rb/')
@@ -872,7 +876,7 @@ namespace :dotnet do
872876

873877
desc 'Generate .NET documentation'
874878
task :docs do |_task, arguments|
875-
if dotnet_version.include?('nightly')
879+
if dotnet_version.include?('nightly') && !arguments.to_a.include?('force')
876880
abort('Aborting documentation update: nightly versions should not update docs.')
877881
end
878882

@@ -987,7 +991,7 @@ namespace :java do
987991

988992
desc 'Generate Java documentation'
989993
task :docs do |_task, arguments|
990-
if java_version.include?('SNAPSHOT')
994+
if java_version.include?('SNAPSHOT') && !arguments.to_a.include?('force')
991995
abort('Aborting documentation update: snapshot versions should not update docs.')
992996
end
993997

common/repositories.bzl

Lines changed: 19 additions & 19 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/139.0b4/linux-x86_64/en-US/firefox-139.0b4.tar.xz",
54-
sha256 = "21bfb99fe445e64ad8fb86822fd6d77c9c0d387530b787f3c3fc99b97723d664",
53+
url = "https://ftp.mozilla.org/pub/firefox/releases/139.0b6/linux-x86_64/en-US/firefox-139.0b6.tar.xz",
54+
sha256 = "39f087356b885fb4bbfebe315d09bac3979798a7e0bff0b7c788707c0c7d4d11",
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/139.0b4/mac/en-US/Firefox%20139.0b4.dmg",
76-
sha256 = "c61d0fe161c6cb778a3e564f4cffa70cc7fb6bb5770586fa66c7db8ab9c31cf1",
75+
url = "https://ftp.mozilla.org/pub/firefox/releases/139.0b6/mac/en-US/Firefox%20139.0b6.dmg",
76+
sha256 = "d2fa2ef24f80cbadab7dfb31639f76d8a530acd1653bb8a437ef128937ce1019",
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/7a2f13f4-e241-4582-94b2-6c56bef6b23d/MicrosoftEdge-136.0.3240.50.pkg",
127-
sha256 = "3500c3a7f548e222344c3c110e0a0b190a033adb10d020ce58b8c64a384ad8b6",
126+
url = "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/0d424762-5771-4a00-ada6-d1a3fb2e2054/MicrosoftEdge-136.0.3240.64.pkg",
127+
sha256 = "483324afe4db695c9497822e3e220065379d92077b8f29abb1e8d8f6d045909c",
128128
move = {
129-
"MicrosoftEdge-136.0.3240.50.pkg/Payload/Microsoft Edge.app": "Edge.app",
129+
"MicrosoftEdge-136.0.3240.64.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_136.0.3240.50-1_amd64.deb",
147-
sha256 = "19d27dddf6d4a46e1e03b3d0fa1eb4af0d5870f12d3816e0431b983331f947e9",
146+
url = "https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_136.0.3240.64-1_amd64.deb",
147+
sha256 = "cf2a2ea4d76d5cae66bc8e68ca9f40255ad6c1894c28e55a6813a70ce8c73b4a",
148148
build_file_content = """
149149
load("@aspect_rules_js//js:defs.bzl", "js_library")
150150
package(default_visibility = ["//visibility:public"])
@@ -182,8 +182,8 @@ js_library(
182182

183183
http_archive(
184184
name = "mac_edgedriver",
185-
url = "https://msedgedriver.azureedge.net/136.0.3240.50/edgedriver_mac64.zip",
186-
sha256 = "9c592695119986af76bd0182bc355716e29844dd97052f77865f55fffbf6db3d",
185+
url = "https://msedgedriver.azureedge.net/136.0.3240.64/edgedriver_mac64.zip",
186+
sha256 = "729731958bfeee999006572973c8eee6d4bd402e34c5b410fb29bfbaeeafb8bd",
187187
build_file_content = """
188188
load("@aspect_rules_js//js:defs.bzl", "js_library")
189189
package(default_visibility = ["//visibility:public"])
@@ -199,8 +199,8 @@ js_library(
199199

200200
http_archive(
201201
name = "linux_chrome",
202-
url = "https://storage.googleapis.com/chrome-for-testing-public/136.0.7103.49/linux64/chrome-linux64.zip",
203-
sha256 = "cceec137ebf1d66cdee7966c05311cc7f200a0172d012925763c151bdca90edd",
202+
url = "https://storage.googleapis.com/chrome-for-testing-public/136.0.7103.92/linux64/chrome-linux64.zip",
203+
sha256 = "c98775f3f17ad7368e6c08b3254f8345a90179fb10321c980e8a6e7426b6761f",
204204
build_file_content = """
205205
load("@aspect_rules_js//js:defs.bzl", "js_library")
206206
package(default_visibility = ["//visibility:public"])
@@ -221,8 +221,8 @@ js_library(
221221

222222
http_archive(
223223
name = "mac_chrome",
224-
url = "https://storage.googleapis.com/chrome-for-testing-public/136.0.7103.49/mac-x64/chrome-mac-x64.zip",
225-
sha256 = "461b547a323784a1ac315fbf387dcbe777199d809c54ea8a0f635010538aaa76",
224+
url = "https://storage.googleapis.com/chrome-for-testing-public/136.0.7103.92/mac-x64/chrome-mac-x64.zip",
225+
sha256 = "eb2b36e4d07f7918766de16dca515b9dd122c74a27af91adf9443fdd20bf7c15",
226226
strip_prefix = "chrome-mac-x64",
227227
patch_cmds = [
228228
"mv 'Google Chrome for Testing.app' Chrome.app",
@@ -243,8 +243,8 @@ js_library(
243243

244244
http_archive(
245245
name = "linux_chromedriver",
246-
url = "https://storage.googleapis.com/chrome-for-testing-public/136.0.7103.49/linux64/chromedriver-linux64.zip",
247-
sha256 = "d9b388d8dc609f89332662a824899a0ed702a26c8dfd824e9a24a4e5fa44a197",
246+
url = "https://storage.googleapis.com/chrome-for-testing-public/136.0.7103.92/linux64/chromedriver-linux64.zip",
247+
sha256 = "69be66bd096f895227928e14b964dbbca57ca2eeed111ea8601e43b3ca31c382",
248248
strip_prefix = "chromedriver-linux64",
249249
build_file_content = """
250250
load("@aspect_rules_js//js:defs.bzl", "js_library")
@@ -261,8 +261,8 @@ js_library(
261261

262262
http_archive(
263263
name = "mac_chromedriver",
264-
url = "https://storage.googleapis.com/chrome-for-testing-public/136.0.7103.49/mac-x64/chromedriver-mac-x64.zip",
265-
sha256 = "ba9ce908dc76c0ae6a3ac9976a0f820247e48fca2b0c9a183dfed901ed16f157",
264+
url = "https://storage.googleapis.com/chrome-for-testing-public/136.0.7103.92/mac-x64/chromedriver-mac-x64.zip",
265+
sha256 = "3c8ef934f9a37f23081f24fc4354ea37ad08202cc3cca157380bf6524c5bc6ec",
266266
strip_prefix = "chromedriver-mac-x64",
267267
build_file_content = """
268268
load("@aspect_rules_js//js:defs.bzl", "js_library")

java/src/org/openqa/selenium/internal/Require.java

Lines changed: 0 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
package org.openqa.selenium.internal;
1919

20-
import java.io.File;
2120
import java.nio.file.Files;
2221
import java.nio.file.Path;
2322
import java.time.Duration;
@@ -161,11 +160,6 @@ public static IntChecker argument(String argName, @Nullable Integer number) {
161160
return new IntChecker(argName, number);
162161
}
163162

164-
@Deprecated(forRemoval = true)
165-
public static FileChecker argument(String argName, @Nullable File file) {
166-
return new FileChecker(argName, file);
167-
}
168-
169163
public static PathChecker argument(String argName, @Nullable Path path) {
170164
return new PathChecker(argName, path);
171165
}
@@ -180,11 +174,6 @@ public static <T> StateChecker<T> state(String name, @Nullable T state) {
180174
return new StateChecker<>(name, state);
181175
}
182176

183-
@Deprecated(forRemoval = true)
184-
public static FileStateChecker state(String name, @Nullable File file) {
185-
return new FileStateChecker(name, file);
186-
}
187-
188177
public static PathStateChecker state(String name, @Nullable Path path) {
189178
return new PathStateChecker(name, path);
190179
}
@@ -255,48 +244,6 @@ public int greaterThan(int max, String message) {
255244
}
256245
}
257246

258-
@Deprecated(forRemoval = true)
259-
public static class FileChecker {
260-
261-
private final String argName;
262-
private final @Nullable File file;
263-
264-
FileChecker(String argName, @Nullable File file) {
265-
this.argName = argName;
266-
this.file = file;
267-
}
268-
269-
public File isFile() {
270-
if (file == null) {
271-
throw new IllegalArgumentException(String.format(MUST_BE_SET, argName));
272-
}
273-
if (!file.exists()) {
274-
throw new IllegalArgumentException(
275-
String.format(MUST_EXIST, argName, file.getAbsolutePath()));
276-
}
277-
if (!file.isFile()) {
278-
throw new IllegalArgumentException(
279-
String.format(MUST_BE_FILE, argName, file.getAbsolutePath()));
280-
}
281-
return file;
282-
}
283-
284-
public File isDirectory() {
285-
if (file == null) {
286-
throw new IllegalArgumentException(String.format(MUST_BE_SET, argName));
287-
}
288-
if (!file.exists()) {
289-
throw new IllegalArgumentException(
290-
String.format(MUST_EXIST, argName, file.getAbsolutePath()));
291-
}
292-
if (!file.isDirectory()) {
293-
throw new IllegalArgumentException(
294-
String.format(MUST_BE_DIR, argName, file.getAbsolutePath()));
295-
}
296-
return file;
297-
}
298-
}
299-
300247
public static class PathChecker {
301248

302249
private final String argName;
@@ -373,58 +320,6 @@ public T instanceOf(Class<?> cls) {
373320
}
374321
}
375322

376-
@Deprecated(forRemoval = true)
377-
public static class FileStateChecker {
378-
379-
private final String name;
380-
private final @Nullable File file;
381-
382-
FileStateChecker(String name, @Nullable File file) {
383-
this.name = name;
384-
this.file = file;
385-
}
386-
387-
public File isFile() {
388-
if (file == null) {
389-
throw new IllegalStateException(String.format(MUST_BE_SET, name));
390-
}
391-
if (!file.exists()) {
392-
throw new IllegalStateException(String.format(MUST_EXIST, name, file.getAbsolutePath()));
393-
}
394-
if (!file.isFile()) {
395-
throw new IllegalStateException(String.format(MUST_BE_FILE, name, file.getAbsolutePath()));
396-
}
397-
return file;
398-
}
399-
400-
public File isDirectory() {
401-
if (file == null) {
402-
throw new IllegalStateException(String.format(MUST_BE_SET, name));
403-
}
404-
if (!file.exists()) {
405-
throw new IllegalStateException(String.format(MUST_EXIST, name, file.getAbsolutePath()));
406-
}
407-
if (!file.isDirectory()) {
408-
throw new IllegalStateException(String.format(MUST_BE_DIR, name, file.getAbsolutePath()));
409-
}
410-
return file;
411-
}
412-
413-
public File isExecutable() {
414-
if (file == null) {
415-
throw new IllegalStateException(String.format(MUST_BE_SET, name));
416-
}
417-
if (!file.exists()) {
418-
throw new IllegalStateException(String.format(MUST_EXIST, name, file.getAbsolutePath()));
419-
}
420-
if (!file.canExecute()) {
421-
throw new IllegalStateException(
422-
String.format(MUST_BE_EXECUTABLE, name, file.getAbsolutePath()));
423-
}
424-
return file;
425-
}
426-
}
427-
428323
public static class PathStateChecker {
429324

430325
private final String name;

java/src/org/openqa/selenium/remote/RemoteStatus.java

Lines changed: 0 additions & 88 deletions
This file was deleted.

java/src/org/openqa/selenium/remote/ScreenshotException.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,4 @@ public ScreenshotException(Throwable cause) {
3232
public ScreenshotException(String message, Throwable cause) {
3333
super(message, cause);
3434
}
35-
36-
@Deprecated(forRemoval = true)
37-
public String getBase64EncodedScreenshot() {
38-
return null;
39-
}
4035
}

0 commit comments

Comments
 (0)