You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When maximize_window() command is used, Browser is expected to stay in maximized state.
Actual Behavior
Browser collapses into smaller window at the beginning of every pytest script. As a workaround, I must use maximize_window() at the beginning of every script. Also when headless chrome is under the control of NeedleDriver, any arguments to change the browser size does not work.
Steps to Reproduce the Problem
Initialize Browser,
give maximize_window() command using NeedleDriver
Browser size will collapse at the beginning of every test.
Specifications
Version: pytest-needle 3.11, selenium 3.141
Platform: Windows 7
The text was updated successfully, but these errors were encountered:
@derek-charles I would agree that this should be the default behaviour, however this not an issue with this library and is instead an issue with pytest-selenium (a dependency). pytest-selenium opens a new browser window each test and thus resets its window size state with each test. A few other folks, including myself, have left comments suggesting changing this, but it looks like it'll continue to operate this way.
You could override the selenium fixture with one that's scope is set to session, like suggested here. Remember though you'll also have to create an override for needle as well, since the two are tied.
Expected Behavior
When maximize_window() command is used, Browser is expected to stay in maximized state.
Actual Behavior
Browser collapses into smaller window at the beginning of every pytest script. As a workaround, I must use maximize_window() at the beginning of every script. Also when headless chrome is under the control of NeedleDriver, any arguments to change the browser size does not work.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: