Capture screenshot of a specific web element
Preconditions (2)
Step 1: Open browser and navigate to 'https://example.com/login'
Step 2: Locate the username input field by its id 'username'
Step 3: Take a screenshot of the username input field element
Step 4: Save the screenshot as 'username_field.png' in the project directory
✅ Expected Result: Screenshot file 'username_field.png' is created and contains only the username input field image