Comments (11)
Yes, you are right. But technically it's hard to implement it if we still use Android uiautomator watcher mechanism. I am thinking if there is another way to implement similar functionality. Any idea is welcome!
from uiautomator.
Actually what I am expecting is just a host side python callback which can do something, e.g take a screenShot when condition match. It needn't inject any code to device end UIWatcher, is it possible?
from uiautomator.
uiautomator watcher is a java method on device side, which is triggered by a selection mismatch. We have to find a way to inform PC side and wait for its response. All these must be done before the java method returns. I am trying to find a way to resolve it, but I am not sure.
from uiautomator.
An alternative way is to replace uiautomator watcher mechanism with pure python implementation on PC side, but it may cause some confusions.
from uiautomator.
yes, that's what I mean. About your concern, I don't think it confuse someone. As it is just about add a pure python callback, not replace or break any original functionality.
from uiautomator.
xiaocong, any update on this feature requirement?
from uiautomator.
There are still some logic conflicts. I hope I can fix it soon.
from uiautomator.
@jwang11 please help review the code under feature/not-found-callback branch
. Any suggestion on how to define the API is welcome.
from uiautomator.
@xiaocong, thanks. The code looks fine for me, however, we still a bit more time to verify its functionality. I assume the way to use it like
d.handlers.on(callback)
right?
and there is no change on uiautomator-jsonrpc-server
from uiautomator.
@jwang11 yes, it's correct.
from uiautomator.
@jwang11 and @xiaocong can you please give me an example on how to use callback interface for UIwatcher?
from uiautomator.
Related Issues (20)
- Clip board
- some code of uiautomator was removed after upgraded to 1.0.1 from 0.3.6
- Change from "-r -t" to "-r", "-t" required to connect to device on windows.
- does python uiautomator support android force desktop mode on android 11 ?
- GrantPermissionRule in uiautomator
- poco ui元素当页面位置发生变化后,点击的位置不正确
- How can I integrate vision based logic such that I can tap/swipe based on visual match instead of UI element ?
- No connection could be made because the target machine actively refused it HOT 1
- uiautomator is not workable in android S, how can I get the source code of stub, so that have chance to upgrate it. HOT 1
- curl: (7) Failed to connect to localhost port 9008: Connection refused
- DexArchiveBuilderException when using version 1.6
- Getting error code -32001
- LongClick does not seem to work HOT 2
- Automate android HOT 1
- sometimes, click() returned False. HOT 2
- Error while trying to use uiautomator modules HOT 1
- Check out this module for Android 13
- python3.7.9 uiautomator脚本一直阻塞无法执行 HOT 1
- Need to install the uiautomator everytime when running HOT 2
- '.exists' calls timing out or taking a LONG time to complete if I have a field on screen with constantly updating text HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uiautomator.