Maximize and set the window size
Easy30 pts~12 min
- Window management
- Viewport
Practice app · TargetQA Practice Store
A small storefront landing page for browser setup, navigation, titles, URLs and screenshots.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Control the browser window: maximize it, then set an exact size and verify it.
Your task
- 1Open TEST_URL and maximize the window.
- 2Set the window size to 1024 × 768.
- 3Read the window size back and assert width 1024 and height 768.
- 4Optionally read
#viewport-size, which shows the inner viewport.
Acceptance criteria
- The window is maximized
- The window size is set explicitly
- The practice app is open
- At least 1 assertion passes
Selenium WebDriver 4 · Selenium · Setup & first script