File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 22
22
23
23
namespace WebDriver ;
24
24
25
+ use WebDriver \Exception as WebDriverException ;
26
+
25
27
/**
26
28
* WebDriver\Session class
27
29
*
@@ -292,6 +294,24 @@ public function frame()
292
294
return new Frame ($ this ->url . '/frame ' );
293
295
}
294
296
297
+ /**
298
+ * moveto: /session/:sessionId/moveto (POST)
299
+ *
300
+ * @param array $parameters
301
+ *
302
+ * @return mixed
303
+ */
304
+ public function moveto ($ 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
+
295
315
/**
296
316
* timeouts methods: /session/:sessionId/timeouts (POST)
297
317
* - $session->timeouts($json) - set timeout for an operation
You can’t perform that action at this time.
0 commit comments