问题
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