I have been unable to resize the Selenium WebDriver in my protractor/cucumber testing.
These are some of the commands that I have tried.
webdriver.WebDriver.Window().setSize(width, height);
webdriver.WebDriver.Window().setSize(width, height);
webdriver.WebDriver.Window.setSize(width, height);
webdriver.WebDriver.Window.prototype.setSize(width, height);
From here
browser.driver.manage().window().setSize(width, height);
How to set default browser window size in Protractor/WebdriverJS
And:
browser.driver.manage().window().maximize();
webdriver.WebDriver.Window.prototype.maximize();
webdriver.WebDriver.Window.maximize();
browser.driver.manage().window().maximize();
This article, for example, was no help as I don't know where the imports come from.
I have had no luck understanding the root of this issue as they all return promises and I am not sure how to debug them.
I am using protractor version 2.0.0
Thank you for any help!