Comments (5)
- uiautomator wrapper uses a jsonrpc server on device side to register watcher. If the jsonrpc server gets down, the registered watchers will get lost.
- uiautomator wrapper will restart the jsonrpc server automatically in case of an unrecoverable error from jsonrpc server.
So my assumption is the jsonrpc server got restarted. If possible, please help send the logcat to me.
from uiautomator.
I'm sorry to feedback so slow.......Really sorry...
As you said, the jsonrpc maybe get down and restart will lost the watchers. So I create a thread in my test to check if there is exception blocked in the front page. Now it works. But can you add this to you wrapper? I mean a complete wrapper to handle exception like .....isn't responding and ......has crashed....
Best Regards!
from uiautomator.
Thank @hankaidahaoren , but it's tricky to catch exception and re-add d watchers into the new jsonrpc server when it restarts.
I am thinking another way to implement it. Could you please have a try at below branch? I'd like to get your feedback.
pip install git+https://github.com/xiaocong/uiautomator.git@feature/not-found-callback
Best Regards!
from uiautomator.
Okay, xiaocong, I will try it and will feed back as soon as possible.
THANK YOU!
from uiautomator.
merged into main branch.
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.