Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ public List<BrowsingContextInfo> getTree() {

public List<BrowsingContextInfo> getTree(String root) {
return this.bidi.send(
new Command<>(
"browsingContext.getTree", Map.of("root", root), browsingContextInfoListMapper));
new Command<>(
"browsingContext.getTree", Map.of("root", root), browsingContextInfoListMapper));
}

public List<BrowsingContextInfo> getTree(int maxDepth) {
Expand All @@ -166,12 +166,12 @@ public List<BrowsingContextInfo> getTree(int maxDepth) {

public List<BrowsingContextInfo> getTree(String root, int maxDepth) {
return this.bidi.send(
new Command<>(
"browsingContext.getTree",
Map.of(
"root", root,
"maxDepth", maxDepth),
browsingContextInfoListMapper));
new Command<>(
"browsingContext.getTree",
Map.of(
"root", root,
"maxDepth", maxDepth),
browsingContextInfoListMapper));
}

public List<BrowsingContextInfo> getTopLevelContexts() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ public String getParentBrowsingContext() {
}

public BrowsingContextInfo(
String id, String url, List<BrowsingContextInfo> children, String clientWindow, String originalOpener, String userContext, String parentBrowsingContext) {
String id,
String url,
List<BrowsingContextInfo> children,
String clientWindow,
String originalOpener,
String userContext,
String parentBrowsingContext) {
this.id = id;
this.url = url;
this.children = children;
Expand Down Expand Up @@ -125,6 +131,7 @@ public static BrowsingContextInfo fromJson(JsonInput input) {

input.endObject();

return new BrowsingContextInfo(id, url, children, clientWindow, originalOpener, userContext, parentBrowsingContext);
return new BrowsingContextInfo(
id, url, children, clientWindow, originalOpener, userContext, parentBrowsingContext);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import static org.openqa.selenium.support.ui.ExpectedConditions.visibilityOfElementLocated;

import java.util.List;

import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
Expand Down
Loading