Skip to content

Commit

Permalink
[java] register the callback to the correct event
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 committed Apr 22, 2024
1 parent 7dd6163 commit ea73d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/src/org/openqa/selenium/bidi/module/Network.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public void onResponseCompleted(Consumer<ResponseDetails> consumer) {
if (browsingContextIds.isEmpty()) {
this.bidi.addListener(responseCompleted, consumer);
} else {
this.bidi.addListener(browsingContextIds, responseStarted, consumer);
this.bidi.addListener(browsingContextIds, responseCompleted, consumer);
}
}

Expand Down

0 comments on commit ea73d44

Please sign in to comment.