Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with 'CLASS_CHAIN' search #497

Closed
tking16 opened this issue Jul 1, 2022 · 2 comments · Fixed by #510
Closed

Bug with 'CLASS_CHAIN' search #497

tking16 opened this issue Jul 1, 2022 · 2 comments · Fixed by #510

Comments

@tking16
Copy link

tking16 commented Jul 1, 2022

App Version: 2022.5.4
Electron: 13.6.9
Node.js: 14.16.0
Platform: Mac OS

You guys have a bug with your 'Find Element' section, When you search by class chain the inspector tries to search by 'CLASS_CHAI' so naturally nothing will ever be found

https://imgur.com/a/1fax7db

@TDL-EdgarsEglitis
Copy link

TDL-EdgarsEglitis commented Jul 1, 2022

Not sure if this will solve your issue, but your example is using an xpath selector with the class chain strategy 🙂 The correct class chain selector would be **/XCUIElementTypeButton[`name == "Settings"`].
Check the class chain construction rules here.

Edit: But there does seem to be a typo with 'CLASS_CHAI', located in app/renderer/lib/client-frameworks/python.js:55

@jlipps
Copy link
Member

jlipps commented Jul 5, 2022

As @TDL-EdgarsEglitis mentioned, this is probably just a typo in the code which is displayed in the recorder. The Inspector never actually runs this code; it's just displayed as a reference. But yes, we should fix the typo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants