Comments (3)
If I do
>>> import os
>>> import sys
>>> from com.dtmilano.android.viewclient import ViewClient
>>> device, serialno = ViewClient.connectToDeviceOrExit(verbose=False)
>>> device.shell('logcat -c')
>>> device.takeSnapshot()
>>> device.wake()
>>> device.shell('logcat -d')
I get a socket.error: [Errno 32] Broken pipe
error on self.socket.send('%04X%s' % (len(msg), msg)
at line 123 of __send
in adbclient.py
Could the takeSnapshot()
method be breaking the connection to the device?
from androidviewclient.
Yes, I think the connection to the device gets broken in takeSnapshot()
.
Replacing my takeSnapshot()
calls with takeSnapshot(reconnect=True)
resolved the issue.
from androidviewclient.
The reason why reconnect=True
is not the default is to speed up things
when the common case of a script only taking a screenshot and exiting is
used.
But definitely, I will reconsider that.
Thanks for your feedback.
On Fri, Sep 13, 2013 at 9:21 AM, catshoes [email protected] wrote:
Yes, I think the connection to the device gets broken in takeSnapshot().
Replacing my takeSnapshot() calls with takeSnapshot(reconnect=True)resolved the issue.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-24393829
.
Have you read my blog ?
http://dtmilano.blogspot.com
android junit tests ui linux cult thin clients
from androidviewclient.
Related Issues (20)
- Cannot install android-select-device HOT 1
- Find Password flag state in vc.dump() data HOT 1
- [Errno 8] nodename nor servname provided, or not known. HOT 4
- Multi-swipe HOT 2
- startActivity() doesn't work HOT 3
- How to deal with file dialog HOT 1
- Help me with incomplete escape \U at position 2 HOT 14
- please Help me with touch not response HOT 3
- How to get pop-up messages in app HOT 4
- can not use the examples browser-open-url.py HOT 2
- takeSnapshot fails after first time HOT 4
- Can't find or read elements with Unity game HOT 7
- Exception: adb="adb.exe" is not executable. HOT 1
- ValueError: received does not contain valid XML: Killed HOT 7
- Take SnapShot with TimeOutException HOT 15
- 22.3.0 does not support Python 3.7.7 HOT 2
- error using helper HOT 1
- CulebraTester2 backend: error when using findViewWithAttributeThatMatches HOT 4
- ViewClient crash due to __parseTreeFromUiAutomatorDump ? HOT 4
- Example of using Pinch HOT 3
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 androidviewclient.