Complete the code to set the browser window size to 1024x768.
driver.set_window_size([1], 768)
The set_window_size method takes width and height as arguments. Here, width should be 1024.
Complete the code to maximize the browser window.
driver.[1]()fullscreen_window() which is different from maximize.minimize_window() which minimizes the window.The maximize_window() method maximizes the browser window to full screen.
Fix the error in the code to get the current window size.
size = driver.[1]window_size which is not a valid property.The get_window_size() method returns the current window size as a dictionary.
Fill both blanks to resize the window to 800 width and 600 height.
driver.set_window_size([1], [2])
The set_window_size method requires width and height as arguments. Here, width is 800 and height is 600.
Fill all three blanks to get the window size and check if width is greater than 1000.
size = driver.[1] if size['[2]'] [3] 1000: print('Wide window')
Use get_window_size() method to get size, access 'width' key, and compare with > operator.