1.1 Basic Interactable Elements
Text Inputs
How to automate
CSS: [data-testid="input-text"]
XPath: //input[@data-testid="input-text"]
Action: sendKeys("testuser")
Assert: value attribute equals "testuser"
Checkboxes & Radio Buttons
How to automate
CSS: [data-testid="chk-terms"]
XPath: //input[@data-testid="radio-plan-pro"]
Action: click()
Assert: checked property is true
Radio: Only one in group can be selected
Buttons & Links
Documentation Link External LinkHow to automate
CSS: [data-testid="btn-primary"]
XPath: //button[@data-testid="btn-primary"]
Action: click()
Assert: enabled state, href attribute for links
Note: Check disabled attribute for btn-secondary
Images
How to automate
CSS: [data-testid="img-logo"]
XPath: //img[@data-testid="img-logo"]
Assert: alt attribute, src attribute, isDisplayed()
Accessibility: Always verify alt text presence