Codeception: Configuration initial browser size

Created on 5 Mar 2014  路  3Comments  路  Source: Codeception/Codeception

Hi,

I found the option to resize the browser window (chrome) with the methods:

$I->maximizeWindow();
$I->resizeWindow(400,200);

That's cool and works.
Is there a possibility to set a initial window size in the configuration.yml? I prefer to run all functional tests in a maximized window and don't want to setup each test via setUp().

Greets
Sebastian

ENHANCEMENT

Most helpful comment

currently not working

"errorMessage":"Element is not currently interactable and may not be manipulated" 

All 3 comments

Added config parameter window_size.
It can be set either to maximize or 1024x768 (or any other dimension you want).
Chnages are in dev-master

currently not working

"errorMessage":"Element is not currently interactable and may not be manipulated" 

I try to use $I->maximizeWindow(); and Chrome window don't maximize.

I use this in _before() also in a test case.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sasha-x picture sasha-x  路  3Comments

joshhornby picture joshhornby  路  3Comments

nikolaykolev picture nikolaykolev  路  3Comments

rogoit picture rogoit  路  3Comments

gimler picture gimler  路  3Comments