We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bba8c60 commit 06c9b52Copy full SHA for 06c9b52
lib/WebDriver/Window.php
@@ -83,9 +83,9 @@ public function __construct($url, $windowHandle = null)
83
public function getHandle()
84
{
85
if (! $this->windowHandle) {
86
- $result = $this->curl('GET', $this->url);
+ $result = $this->curl('GET', '');
87
88
- $this->windowHandle = array_key_exists(self::WEB_WINDOW_ID, $result['value'])
+ $this->windowHandle = is_array($result['value']) && array_key_exists(self::WEB_WINDOW_ID, $result['value'])
89
? $result['value'][self::WEB_WINDOW_ID]
90
: $result['value'];
91
}
0 commit comments