Skip to content

Commit a2404b8

Browse files
alb-i986ddavison
authored andcommitted
java: fix log string for RemoteTargetLocator#defaultContent
driver.switchTo().defaultContent() used to log the following: Executing: [switch to frame: null] It turns out that the handler SwitchToFrame expects the parameter id to be set to null for switching to the default content. Signed-off-by: Daniel Davison <[email protected]>
1 parent a6b77f0 commit a2404b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/server/src/org/openqa/selenium/remote/server/handler/SwitchToFrame.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ public Void call() throws Exception {
5959

6060
@Override
6161
public String toString() {
62-
return String.format("[switch to frame: %s]", id);
62+
return String.format("[switch to frame: %s]", (id == null ? "default" : id));
6363
}
6464
}

0 commit comments

Comments
 (0)