Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to maximize the browser window.
Selenium Python
driver.[1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using minimize_window() instead of maximize_window()
Trying to set window size manually instead of maximizing
✗ Incorrect
The maximize_window() method makes the browser window fill the screen.
2fill in blank
mediumComplete the code to minimize the browser window.
Selenium Python
driver.[1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using maximize_window() instead of minimize_window()
Using fullscreen_window() which makes the window full screen but not minimized
✗ Incorrect
The minimize_window() method reduces the browser window to the taskbar or dock.
3fill in blank
hardFix the error in the code to maximize the window.
Selenium Python
driver.[1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using camelCase like maximizeWindow()
Missing underscore between maximize and window
✗ Incorrect
The correct method name is maximize_window() with an underscore and all lowercase letters.
4fill in blank
hardFill both blanks to maximize and then minimize the browser window.
Selenium Python
driver.[1]() driver.[2]()
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the order of maximize and minimize
Using fullscreen_window() instead of minimize_window()
✗ Incorrect
First maximize the window, then minimize it using the correct methods.
5fill in blank
hardFill all three blanks to maximize, minimize, and then fullscreen the browser window.
Selenium Python
driver.[1]() driver.[2]() driver.[3]()
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using set_window_size() instead of fullscreen_window()
Wrong order of method calls
✗ Incorrect
Use maximize_window() to maximize, minimize_window() to minimize, and fullscreen_window() to make the window full screen.