Closed neervanbiqs closed 1 year ago
If I understand correctly/uiDevice/dumpWindowHierarchy
is what you are looking for.
Take a look at the API here.
Not sure why you mentioned adb shell
though. You can use curl
if you want to do it just from the command line or script.
Check https://github.com/dtmilano/CulebraTester2-public/blob/master/dump-window-hierarchy
curl is for linux and bash. I use windows and cmd
Or any HTTP client you like or AndroidViewClient/culebra's dump -ah
that does precisely that.
Is it possible to click button via curl?
Yes, it might be easier using python
but you can definitely do it using just curl
.
Take a look at https://github.com/dtmilano/CulebraTester2-public/blob/master/simple-calculator-test.
Using curl
it:
Could you add the possibility to dump window via adb shell command like adb shell uiautomator dump?