|
29 | 29 | import org.openqa.selenium.bidi.Event; |
30 | 30 | import org.openqa.selenium.bidi.HasBiDi; |
31 | 31 | import org.openqa.selenium.bidi.browsingcontext.BrowsingContextInfo; |
| 32 | +import org.openqa.selenium.bidi.browsingcontext.HistoryUpdated; |
32 | 33 | import org.openqa.selenium.bidi.browsingcontext.NavigationInfo; |
33 | 34 | import org.openqa.selenium.bidi.browsingcontext.UserPromptClosed; |
34 | 35 | import org.openqa.selenium.bidi.browsingcontext.UserPromptOpened; |
35 | | -import org.openqa.selenium.bidi.browsingcontext.HistoryUpdated; |
36 | 36 | import org.openqa.selenium.internal.Require; |
37 | 37 | import org.openqa.selenium.json.Json; |
38 | 38 | import org.openqa.selenium.json.JsonInput; |
@@ -90,14 +90,14 @@ public class BrowsingContextInspector implements AutoCloseable { |
90 | 90 | }); |
91 | 91 |
|
92 | 92 | private final Event<HistoryUpdated> historyUpdated = |
93 | | - new Event<>( |
94 | | - "browsingContext.historyUpdated", |
95 | | - params -> { |
96 | | - try (StringReader reader = new StringReader(JSON.toJson(params)); |
97 | | - JsonInput input = JSON.newInput(reader)) { |
98 | | - return input.read(HistoryUpdated.class); |
99 | | - } |
100 | | - }); |
| 93 | + new Event<>( |
| 94 | + "browsingContext.historyUpdated", |
| 95 | + params -> { |
| 96 | + try (StringReader reader = new StringReader(JSON.toJson(params)); |
| 97 | + JsonInput input = JSON.newInput(reader)) { |
| 98 | + return input.read(HistoryUpdated.class); |
| 99 | + } |
| 100 | + }); |
101 | 101 |
|
102 | 102 | public BrowsingContextInspector(WebDriver driver) { |
103 | 103 | this(new HashSet<>(), driver); |
|
0 commit comments