Comments (14)
Thank you. I can reproduce it and am trying to find a way to fix it.
from uiautomator.
Hi Xiaocong,
Any luck on this issue?
Thanks
Sridhar
from uiautomator.
uiautomator package uses adb shell uiautomator runtest ..
to start a jsonrpc server on device, but likely it conflicts with adb shell uiautomator events
. I am sorry to say that now I have no good idea to resolve it.
from uiautomator.
This appears to work if i have "adb shell automator events" running in cmd and uiautomator jrpc server running in python. Couldn't this functionality be added as a thread that just watched for event changes? This is so far the only way I have been able to see toaster messages using uiautomator.
from uiautomator.
Think this is possible?
from uiautomator.
What device were you testing on? I tried several devices on both Android 4.2/4.4, the two commands uiautomator events
and uiautomator runtest
could not be run at the same time.
from uiautomator.
Samsung Galaxy S4
from uiautomator.
I'll play with it a little bit and try to get you an order of working events, if that helps.
from uiautomator.
I've messed with it, I think i'm now seeing what you are talking about with both of them not being able to run at the same time. Is there a way that I can manually disconnect uiautomator in a python script so i can run events then reconnect after i obtain the information from events that i need?
from uiautomator.
Please try d.server.stop()
from uiautomator.
I got it to work after stopping uiautomator. This will be awkward to use, but I think I can figure out a way to use them together with timed stops and what not.
from uiautomator.
To start it back up can I do, d.server.start() or d = uiautomator.Device() or....?
from uiautomator.
Any invoke of device method like d.info
, 'd.press.home()', d(...).click()
will start the server automatically.
from uiautomator.
k thanks!
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.