Capture screenshot of a specific element on a webpage
Preconditions (2)
Step 1: Open the browser and navigate to 'https://example.com'
Step 2: Locate the element with id 'logo' on the page
Step 3: Capture a screenshot of this element only
Step 4: Save the screenshot as 'logo_element.png' in the current directory
✅ Expected Result: A file named 'logo_element.png' is created containing the screenshot of the element with id 'logo'