There was an error while loading. Please reload this page.
1 parent b756195 commit 6ca447eCopy full SHA for 6ca447e
1 file changed
lib/WebDriver/Session.php
@@ -22,6 +22,8 @@
22
23
namespaceWebDriver;
24
25
+useWebDriver\ExceptionasWebDriverException;
26
+
27
/**
28
* WebDriver\Session class
29
*
@@ -292,6 +294,24 @@ public function frame()
292
294
returnnewFrame($this->url . '/frame');
293
295
}
296
297
+/**
298
+ * moveto: /session/:sessionId/moveto (POST)
299
+ *
300
+ * @param array $parameters
301
302
+ * @return mixed
303
+ */
304
+publicfunctionmoveto($parameters)
305
+ {
306
+try {
307
+$result = $this->curl('POST', '/moveto', $parameters);
308
+ } catch (WebDriverException\ScriptTimeout) {
309
+throw WebDriverException::factory(WebDriverException::UNKNOWN_ERROR);
310
+ }
311
312
+return$result['value'];
313
314
315
316
* timeouts methods: /session/:sessionId/timeouts (POST)
317
* - $session->timeouts($json) - set timeout for an operation
0 commit comments