Change window size PHPUnit Selenium2TestCase

混江龙づ霸主 提交于 2019-12-24 03:22:47

问题


I need to maximize my window when the test start and I found this Class PHPUnit_Extensions_Selenium2TestCase_Window.

So I tried to use the method $this->maximize() but I only get

BadMethodCallException: The command 'maximize' is not existent or not supported yet.

Anyone know how to do this?


回答1:


On selenium2TestCase v1.3.3 it's

$this->prepareSession()->currentWindow()->maximize();


来源:https://stackoverflow.com/questions/18099243/change-window-size-phpunit-selenium2testcase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!