File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ public function deleteCookie($cookieName)
218
218
/**
219
219
* window methods: /session/:sessionId/window (POST, DELETE)
220
220
* - $session->window() - close current window
221
- * - $session->window($name ) - set focus
221
+ * - $session->window($window_handle ) - set focus
222
222
* - $session->window($window_handle)->method() - chaining
223
223
*
224
224
* @return \WebDriver\Window|\WebDriver\Session
@@ -233,7 +233,7 @@ public function window()
233
233
}
234
234
235
235
// set focus
236
- $ arg = func_get_arg (0 ); // window handle or name attribute
236
+ $ arg = func_get_arg (0 ); // window handle
237
237
238
238
if (is_array ($ arg )) {
239
239
$ this ->curl ('POST ' , '/window ' , $ arg );
@@ -260,13 +260,13 @@ public function deleteWindow()
260
260
/**
261
261
* Set focus to window: /session/:sessionId/window (POST)
262
262
*
263
- * @param mixed $name window handler or name attribute
263
+ * @param mixed $name window handle
264
264
*
265
265
* @return \WebDriver\Session
266
266
*/
267
267
public function focusWindow ($ name )
268
268
{
269
- $ this ->curl ('POST ' , '/window ' , array ('name ' => $ name ));
269
+ $ this ->curl ('POST ' , '/window ' , array ('handle ' => $ name , ' name ' => $ name ));
270
270
271
271
return $ this ;
272
272
}
You can’t perform that action at this time.
0 commit comments