We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a06be commit 6668237Copy full SHA for 6668237
lib/WebDriver/Session.php
@@ -62,6 +62,11 @@
62
*/
63
final class Session extends Container
64
{
65
+ /**
66
+ * @var array
67
+ */
68
+ private $capabilities = null;
69
+
70
/**
71
* {@inheritdoc}
72
@@ -136,9 +141,13 @@ public function open($url)
136
141
137
142
public function capabilities()
138
143
139
- $result = $this->curl('GET', '');
144
+ if ( ! isset($this->capabilities)) {
145
+ $result = $this->curl('GET', '');
140
146
- return $result['value'];
147
+ $this->capabilities = $result['value'];
148
+ }
149
150
+ return $this->capabilities;
151
}
152
153
0 commit comments