I have a script to monitor the Notifications screen page.
I can open it via "Culebra" option "UiDevice" -> "Open Notifications".
The notifications error message from some apps have starting characters which are changing, only a constant pattern like "error for" is common but located at different position of the TextView
error messages.
Therefore I can't use a regex with the method findViewWithText(regex)
as it seems to use a regex match()
instead of regex search()
. Another solution for my problem is to use traverse()
method with my own transform method which can do a regex search()
of the view attribute text, but I can't figure out how to pass a parameter like a regex to my own transform method!?