Issue
Is there a way to use wildcards e.g. *
in Calabash query
?
e.g. query("TextView text:'My name is' * ")
Solution
you can use LIKE
to perform wildcard searches according to the Xamarin docs
e.g., "label {text LIKE 'C*ll'}"
You can also use CONTAINS
e.g.
query("TextView {text CONTAINS '(sn'}")
or ENDSWITH
or BEGINSWITH
query("TextView {text BEGINSWITH 'R'}")
Answered By - Rachel Gallen
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.