rf / spade

inject events into titanium mobile apps
15 stars 4 forks source link

`find()`, `tapText()` #3

Open rf opened 12 years ago

rf commented 12 years ago

find(): find titanium views matching string

tapText(): tap a view displaying the given text (doesnt have to be a ti view)

rf commented 12 years ago

tapText() impl completed for android

rf commented 12 years ago

find() may be nontrivial on Android. We have getCurrentViews() from Solo, but there's no way to go from a native view back to the proxy as far as I can tell. So, we might need to somehow find the root TiUIView and then do a similar tree search as we did on iOS.