Skip to content

Commit dc18e7f

Browse files
committed
W3C /session/:sessionId/window/size is not supported
1 parent cb05b06 commit dc18e7f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/WebDriver/Window.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
* @method void postPosition($json) Change position of the window.
2525
* @method array getRect() Get window rect.
2626
* @method array postRect() Set window rect.
27-
* @method array getSize() Get window size.
28-
* @method array postSize() Set window size.
2927
*/
3028
class Window extends AbstractWebDriver
3129
{
@@ -48,6 +46,16 @@ protected function methods()
4846
'minimize' => array('POST'),
4947
'position' => array('GET', 'POST'),
5048
'rect' => array('GET', 'POST'),
49+
);
50+
}
51+
52+
/**
53+
* {@inheritdoc}
54+
*/
55+
protected function obsoleteMethods()
56+
{
57+
return array(
58+
// Legacy JSON Wire Protocol
5159
'size' => array('GET', 'POST'),
5260
);
5361
}

0 commit comments

Comments
 (0)