-
Notifications
You must be signed in to change notification settings - Fork 27
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
Wildcards on Text Selector for findObjects #6
Comments
I would do something like this to simplify the use of the API as AndroidViewClient/culebra includes most of the cases:
This is a simple example based on your request. Here, we use AndroidViewClient bindings. We request the backend to be CulebraTester2-public by passing Then, we invoke We loop over the list of objects found and we invoke I run it on an emulator with the Clock as the top Activity to obtain these results:
If AndroidViewClient does not satisfy your needs my second recommendation would be to use CulebraTester2-client which is the lower level API python client used by AndroidViewClient. And there's more, if you need bindings for another language other than python you can generate the client from the openapi.yaml spec. Hope this helps. Resources |
Thanks, very helpful |
Using the example code
oid=$(do_curl -f -X POST "${base_url}/uiDevice/findObject" \ -d "{'text':'${label}'}" | jq .oid)
is there a way that text: could use wildcard / partial match ?
Thanks
The text was updated successfully, but these errors were encountered: