user1593846
user1593846

Reputation: 756

Change window size PHPUnit Selenium2TestCase

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?

Upvotes: 2

Views: 2219

Answers (1)

Ernest Nowacki
Ernest Nowacki

Reputation: 241

On selenium2TestCase v1.3.3 it's

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

Upvotes: 8

Related Questions