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

xpath by id does not work #13

Open
AlterFritz88 opened this issue Jul 16, 2019 · 1 comment
Open

xpath by id does not work #13

AlterFritz88 opened this issue Jul 16, 2019 · 1 comment

Comments

@AlterFritz88
Copy link

I am trying to write unit tests and get items by id like that: self.cli.setattr("//TextInput[@id = "new_user_email]", "text", "[email protected]") but telenium can not to find item this way.

@pakal
Copy link

pakal commented Sep 22, 2021

Tried the same thing, but as noted on https://kivy.org/doc/stable/api-kivy.lang.html :

"Please note that the id will not be available in the widget instance: it is used exclusively for external references."

So I guess Kivy IDs can't be used as automation IDs, for now.

But a custom property could be added to all relevant widgets, maybe?

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

No branches or pull requests

2 participants