From 53e45ca1715b2cb6533eebbb7d7d62706c92b865 Mon Sep 17 00:00:00 2001 From: AndyF Date: Sat, 29 Jun 2024 14:50:29 +0100 Subject: [PATCH] Allow frame switching to WebElement https://github.com/instaclick/php-webdriver/issues/131 --- 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 4ab60a5..9b3698f 100644 --- a/lib/WebDriver/Session.php +++ b/lib/WebDriver/Session.php @@ -351,7 +351,7 @@ public function focusWindow($handle) 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);