tito / telenium

Automation for Kivy Application
MIT License
67 stars 23 forks source link

xpath by id does not work #13

Open AlterFritz88 opened 5 years ago

AlterFritz88 commented 5 years ago

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

pakal commented 3 years ago

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?