Complete the code to maximize the browser window.
driver.manage().window().[1]();The maximize() method maximizes the browser window to full screen.
Complete the code to get the current size of the browser window.
Dimension size = driver.manage().window().[1]();The getSize() method returns the current size of the browser window as a Dimension object.
Fix the error in setting the browser window size to 1024x768.
driver.manage().window().setSize(new Dimension([1], 768));
The Dimension constructor takes width first, so 1024 is the width.
Fill both blanks to set the browser window size to 800x600.
driver.manage().window().setSize(new Dimension([1], [2]));
The Dimension constructor takes width first (800), then height (600).
Fill all three blanks to maximize the window, get its size, and print width.
driver.manage().window().[1](); Dimension size = driver.manage().window().[2](); System.out.println(size.[3]());
First, maximize the window with maximize(). Then get the size with getSize(). Finally, print the width using getWidth method of Dimension.
