@@ -161,25 +161,27 @@ public List<BrowsingContextInfo> getTopLevelContexts() {
161
161
}
162
162
163
163
public NavigationResult reload () {
164
- return this .bidi .send (new Command <>(RELOAD , ImmutableMap .of (CONTEXT , id ), navigationInfoMapper ));
164
+ return this .bidi .send (
165
+ new Command <>(RELOAD , ImmutableMap .of (CONTEXT , id ), navigationInfoMapper ));
165
166
}
166
167
167
168
// Yet to be implemented by browser vendors
168
169
private NavigationResult reload (boolean ignoreCache ) {
169
- return this .bidi .send (new Command <>(
170
- RELOAD ,
171
- ImmutableMap .of (CONTEXT , id , "ignoreCache" , ignoreCache ),
172
- navigationInfoMapper ));
170
+ return this .bidi .send (
171
+ new Command <>(
172
+ RELOAD ,
173
+ ImmutableMap .of (CONTEXT , id , "ignoreCache" , ignoreCache ),
174
+ navigationInfoMapper ));
173
175
}
174
176
175
177
// TODO: Handle timeouts in case of Readiness state "interactive" and "complete".
176
178
// Refer https://github.com/w3c/webdriver-bidi/issues/188
177
179
public NavigationResult reload (ReadinessState readinessState ) {
178
180
return this .bidi .send (
179
181
new Command <>(
180
- RELOAD ,
181
- ImmutableMap .of (CONTEXT , id , "wait" , readinessState .toString ()),
182
- navigationInfoMapper ));
182
+ RELOAD ,
183
+ ImmutableMap .of (CONTEXT , id , "wait" , readinessState .toString ()),
184
+ navigationInfoMapper ));
183
185
}
184
186
185
187
// Yet to be implemented by browser vendors
@@ -198,7 +200,7 @@ public void handleUserPrompt() {
198
200
199
201
public void handleUserPrompt (boolean accept ) {
200
202
this .bidi .send (
201
- new Command <>(HANDLE_USER_PROMPT , ImmutableMap .of (CONTEXT , id , "accept" , accept )));
203
+ new Command <>(HANDLE_USER_PROMPT , ImmutableMap .of (CONTEXT , id , "accept" , accept )));
202
204
}
203
205
204
206
public void handleUserPrompt (String userText ) {
0 commit comments