Smart locator strategy for React JS application using ReactWebdriver
summary
ReactWebdriver is a Java utility that plugs into Selenium (Maven/Gradle) and adds a ByReact.component locator to find React components by name, props or state instead of brittle CSS/xpath. Demo finds 10 user cards and filters 3 admin users by passing user.admin=true, reads hidden data with getProps/getState from a DOM element, and supports wildcard component name matching. Library is open source, works with regular WebDriver instances, and is actively extended to other languages.
AI-written summary · about
chapters (8)
- 0:00Start
- 2:38Challenges
- 3:02What Is a Real Component
- 5:31State
- 6:21Component Code
- 10:12Virtual Dom
- 10:58Reactive Tools
- 15:11Icons
related talks
51mAutomation Testing for React
47mREACTive Automation: How to Avoid Shooting Yourself in the Foot
53mBuilding Web Apps with React.js
26mEmpathy-Driven Development
01h 26mWorkshop: Reactive Browser Testing with WebDriver BiDi
49mSupporting accessibility in React: the difficulties and niceties
30mTesting Library: everybody uses it, but nobody understands it
20mI’m With Web Components and Web Components Are With Me
