Skip to content

Commit ea41d96

Browse files
committed
[java] Fix the parameters passed for credentials
1 parent 5f98528 commit ea41d96

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

java/src/org/openqa/selenium/bidi/network/ContinueResponseParameters.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,14 @@ public ContinueResponseParameters cookies(List<SetCookieHeader> cookieHeaders) {
3939

4040
public ContinueResponseParameters credentials(UsernameAndPassword credentials) {
4141
map.put(
42-
"credentials", Map.of("type", "password", credentials.password(), credentials.username()));
42+
"credentials",
43+
Map.of(
44+
"type",
45+
"password",
46+
"username",
47+
credentials.username(),
48+
"password",
49+
credentials.password()));
4350
return this;
4451
}
4552

0 commit comments

Comments
 (0)