how to change window size in selenium code example
Example 1: selenium change window size
options = webdriver.ChromeOptions()
options.add_argument("--window-size=1100,1000")
Example 2: resize browser window in selenium
To resize browser window
-I would create object of dimensions class
Dimension newD = new Dimension(480,620)
-Than I resize the current window to the given dimension
driver.manage().window().setSize(newD)