How to start a wide browser inside a docker container, for Protractor testing
问题 When running end to end tests inside a docker container we need the browser to be wide, to make sure the elements (aButton) that are positioned far right are actually visible and test like expect(mainPage.aButton.isDisplayed()).toBeTruthy(); succeed. When displaying the browser width we always get a value close to 1050 as a maximum: browser.driver.manage().window().getSize().then(function(size) { console.log('browser size', size); }); displays: browser size { height: 748, width: 1050, class: