You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: React selector detection in findElements for Locator objects
The findElements function was checking locator.react directly, but when
called from findClickable, the locator is wrapped in a Locator object
which stores the react property in locator.locator.react instead.
This commit:
1. Updates findElements to check for React locators in multiple ways:
- locator.type === 'react' (Locator object)
- locator.locator?.react (Locator object with nested locator)
- locator.react (raw locator object)
2. Updates findReactElements to handle both Locator objects and raw
locator objects by checking for locator.locator property first
Fixes: React selector tests now passing
Test results: 42/44 passing (100% of non-skipped tests)
0 commit comments