From 94474cf6cde88edad8ef19152cdee29a657b28fd Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 23 Feb 2024 11:07:56 +0200 Subject: [PATCH] Allow frame switching to WebElement --- lib/WebDriver/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebDriver/Session.php b/lib/WebDriver/Session.php index f8c4506d..c10e855e 100644 --- a/lib/WebDriver/Session.php +++ b/lib/WebDriver/Session.php @@ -282,7 +282,7 @@ public function focusWindow($name) public function frame() { if (func_num_args() === 1) { - $arg = func_get_arg(0); // json + $arg = $this->serializeArguments(func_get_arg(0)); // json $this->curl('POST', '/frame', $arg);