It should be the same as the size of the installation window in any other browsers, feel free to take a look at this example: How to get the window size, resize or enlarge the window using Selenium WebDriver .
Here is the code that works for me:
var driverService = PhantomJSDriverService.CreateDefaultService();
driverService.HideCommandPromptWindow = true;
driverService.LoadImages = false;
driverService.ProxyType = "none";
using (var driver = new PhantomJSDriver(driverService)) {
driver.Manage().Window.Size = new Size(1920, 1080);
driver.Url = "http://www.stackoverflow.com";
driver.TakeScreenshot().SaveAsFile(@"c:\phantomjs_screenshot.png", ImageFormat.Png);
}
source
share