Skip to content

Commit bf3b1f6

Browse files
committed
Merge remote-tracking branch 'origin/bidi_add_authentication_handler' into bidi_add_authentication_handler
2 parents a2d804c + 620ab24 commit bf3b1f6

File tree

22 files changed

+775
-10566
lines changed

22 files changed

+775
-10566
lines changed

MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ bazel_dep(name = "rules_cc", version = "0.0.9", dev_dependency = True)
2020
bazel_dep(name = "rules_dotnet", version = "0.16.0")
2121
bazel_dep(name = "rules_java", version = "7.11.1")
2222
bazel_dep(name = "rules_jvm_external", version = "6.3")
23-
bazel_dep(name = "rules_nodejs", version = "6.2.0")
23+
bazel_dep(name = "rules_nodejs", version = "6.3.0")
2424
bazel_dep(name = "rules_oci", version = "1.7.6")
2525
bazel_dep(name = "rules_pkg", version = "0.10.1")
2626
bazel_dep(name = "rules_python", version = "0.33.0")
@@ -76,7 +76,7 @@ rules_ts_ext.deps(
7676
use_repo(rules_ts_ext, "npm_typescript")
7777

7878
esbuild = use_extension("@aspect_rules_esbuild//esbuild:extensions.bzl", "esbuild")
79-
esbuild.toolchain(esbuild_version = "0.19.9")
79+
esbuild.toolchain(esbuild_version = "0.23.0")
8080
use_repo(esbuild, "esbuild_toolchains")
8181

8282
register_toolchains("@esbuild_toolchains//:all")

Rakefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,6 @@ namespace :node do
483483
new_version = updated_version(old_version, arguments[:version], nightly)
484484

485485
['javascript/node/selenium-webdriver/package.json',
486-
'package-lock.json',
487486
'javascript/node/selenium-webdriver/BUILD.bazel'].each do |file|
488487
text = File.read(file).gsub(old_version, new_version)
489488
File.open(file, 'w') { |f| f.puts text }
@@ -1050,8 +1049,7 @@ namespace :all do
10501049
'py/BUILD.bazel',
10511050
'py/setup.py',
10521051
'rb/lib/selenium/webdriver/version.rb',
1053-
'rb/Gemfile.lock',
1054-
'package-lock.json'])
1052+
'rb/Gemfile.lock'])
10551053

10561054
print 'Do you want to push the committed changes? (Y/n): '
10571055
response = $stdin.gets.chomp.downcase
@@ -1106,7 +1104,6 @@ namespace :all do
11061104
'java/version.bzl',
11071105
'javascript/node/selenium-webdriver/CHANGES.md',
11081106
'javascript/node/selenium-webdriver/package.json',
1109-
'package-lock.json',
11101107
'py/docs/source/conf.py',
11111108
'py/selenium/__init__.py',
11121109
'py/selenium/webdriver/__init__.py',

java/spotbugs-excludes.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,30 @@
204204
<Class name="org.openqa.selenium.remote.internal.WebElementToJsonConverter" />
205205
<Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS" />
206206
</Match>
207+
208+
<Match>
209+
<Class name="org.openqa.selenium.chrome.AddHasCasting" />
210+
<Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS" />
211+
</Match>
212+
213+
<Match>
214+
<Class name="org.openqa.selenium.chrome.AddHasCdp" />
215+
<Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS" />
216+
</Match>
217+
218+
<Match>
219+
<Class name="org.openqa.selenium.edge.AddHasCdp" />
220+
<Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS" />
221+
</Match>
222+
223+
<Match>
224+
<Class name="org.openqa.selenium.edge.AddHasCasting" />
225+
<Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS" />
226+
</Match>
227+
228+
<Match>
229+
<Class name="~org.openqa.selenium.devtools.v[0-9]+\.v\w+" />
230+
<Bug pattern="NM_CLASS_NAMING_CONVENTION"/>
231+
</Match>
232+
207233
</FindBugsFilter>

java/src/org/openqa/selenium/chromium/ChromiumDriver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ public ScriptKey pin(String script) {
212212
// Create the actual script we're going to use.
213213
String scriptToUse =
214214
String.format(
215-
"window.seleniumPinnedScript%s = function(){%s}", Math.abs(script.hashCode()), script);
215+
"window.seleniumPinnedScript%s = function(){%s}",
216+
Math.abs((long) script.hashCode()), script);
216217

217218
DevTools devTools = getDevTools();
218219
devTools.createSessionIfThereIsNotOne();

java/src/org/openqa/selenium/devtools/v127/v127Network.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public Either<HttpRequest, HttpResponse> createSeMessages(RequestPaused pausedRe
127127
} catch (DevToolsException e) {
128128
// Redirects don't seem to have bodies
129129
int code = pausedReq.getResponseStatusCode().orElse(HTTP_OK);
130-
if (code < 300 && code > 399) {
130+
if (code >= 300 && code <= 399) {
131131
LOG.warning("Unable to get body for request id " + pausedReq.getRequestId());
132132
}
133133

java/src/org/openqa/selenium/devtools/v128/v128Network.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public Either<HttpRequest, HttpResponse> createSeMessages(RequestPaused pausedRe
127127
} catch (DevToolsException e) {
128128
// Redirects don't seem to have bodies
129129
int code = pausedReq.getResponseStatusCode().orElse(HTTP_OK);
130-
if (code < 300 && code > 399) {
130+
if (code >= 300 && code <= 399) {
131131
LOG.warning("Unable to get body for request id " + pausedReq.getRequestId());
132132
}
133133

java/src/org/openqa/selenium/devtools/v129/v129Network.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public Either<HttpRequest, HttpResponse> createSeMessages(RequestPaused pausedRe
127127
} catch (DevToolsException e) {
128128
// Redirects don't seem to have bodies
129129
int code = pausedReq.getResponseStatusCode().orElse(HTTP_OK);
130-
if (code < 300 && code > 399) {
130+
if (code >= 300 && code <= 399) {
131131
LOG.warning("Unable to get body for request id " + pausedReq.getRequestId());
132132
}
133133

java/src/org/openqa/selenium/devtools/v85/V85Network.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public Either<HttpRequest, HttpResponse> createSeMessages(RequestPaused pausedRe
137137
} catch (DevToolsException e) {
138138
// Redirects don't seem to have bodies
139139
int code = pausedReq.getResponseStatusCode().orElse(HTTP_OK);
140-
if (code < 300 && code > 399) {
140+
if (code >= 300 && code <= 399) {
141141
LOG.warning("Unable to get body for request id " + pausedReq.getRequestId());
142142
}
143143

java/src/org/openqa/selenium/grid/data/NodeStatus.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ public boolean equals(Object o) {
214214
return Objects.equals(this.nodeId, that.nodeId)
215215
&& Objects.equals(this.externalUri, that.externalUri)
216216
&& this.maxSessionCount == that.maxSessionCount
217+
&& this.sessionTimeout == that.sessionTimeout
217218
&& Objects.equals(this.slots, that.slots)
218219
&& Objects.equals(this.availability, that.availability)
219220
&& Objects.equals(this.version, that.version);
@@ -224,7 +225,7 @@ public int hashCode() {
224225
return Objects.hash(nodeId, externalUri, maxSessionCount, slots, version);
225226
}
226227

227-
private Map<String, Object> toJson() {
228+
public Map<String, Object> toJson() {
228229
Map<String, Object> toReturn = new TreeMap<>();
229230
toReturn.put("nodeId", nodeId);
230231
toReturn.put("externalUri", externalUri);

java/src/org/openqa/selenium/grid/graphql/Grid.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public List<Node> getNodes() {
9797
status.getExternalUri(),
9898
status.getAvailability(),
9999
status.getMaxSessionCount(),
100+
status.getSessionTimeout(),
100101
status.getSlots().size(),
101102
stereotypes,
102103
sessions,

0 commit comments

Comments
 (0)