Testability is the degree to which a product’s behavior and interfaces support effective testing. Semantic HTML and clear, stable attributes make UI automation and AI-generated page objects more reliable. section 7.1.2
A testable contact form
A contact form using stable ids such as name, email, phone, subject, and description lets a page object locate fields directly. When selectors become complex because ids are autogenerated or elements are missing, generated code requires manual updates. Testability also depends on domain context: a generic phone number may violate an 11-digit validation rule.
Assess testability through practical signals:
- Prefer semantic elements and predictable selectors. section 7.1.2
- Verify generated test data against field validation rules. section 7.1.2


