Comments (5)
The bits that actually do the screenshotting are in ddmlib, part of the AOSP. In particular, take a look here to see where the framebuffer is fetched. It looks like the default timeout is 5s as defined here. If you dig up the sourcecode for screenShotTaker.jar
, you might be able to call DdmPreferences.setTimeout(int)
before taking the screenshot to give yourself more breathing room on the tablet.
from calabash-android.
I will make the screenShotTaker source available on GitHub. It is indeed using ddmlib.
We have thought about taking the screenshots directly on the device instead of using ddmlib.
It would then give you the screenshot directly on <device_ip>:7102/screenshot.
Do you guys have any opinion about that?
On Wednesday, August 8, 2012 at 11:06 , Edward Dale wrote:
The bits that actually do the screenshotting are in ddmlib, part of the AOSP. In particular, take a look here (http://grepcode.com/file/repo1.maven.org/maven2/com.google.android.tools/ddmlib/r13/com/android/ddmlib/AdbHelper.java?av=f#268) to see where the framebuffer is fetched. It looks like the default timeout is 5s as defined here (http://grepcode.com/file/repo1.maven.org/maven2/com.google.android.tools/ddmlib/r13/com/android/ddmlib/DdmPreferences.java#44). If you dig up the sourcecode for screenShotTaker.jar, you might be able to call DdmPreferences.setTimeout(int) before taking the screenshot to give yourself more breathing room on the tablet.
β
Reply to this email directly or view it on GitHub (#69 (comment)).
from calabash-android.
That sounds like a great idea.
On Wednesday, August 8, 2012 at 11:10 AM, Jonas Maturana Larsen wrote:
I will make the screenShotTaker source available on GitHub. It is indeed using ddmlib.
We have thought about taking the screenshots directly on the device instead of using ddmlib.
It would then give you the screenshot directly on <device_ip>:7102/screenshot.Do you guys have any opinion about that?
On Wednesday, August 8, 2012 at 11:06 , Edward Dale wrote:
The bits that actually do the screenshotting are in ddmlib, part of the AOSP. In particular, take a look here (http://grepcode.com/file/repo1.maven.org/maven2/com.google.android.tools/ddmlib/r13/com/android/ddmlib/AdbHelper.java?av=f#268) to see where the framebuffer is fetched. It looks like the default timeout is 5s as defined here (http://grepcode.com/file/repo1.maven.org/maven2/com.google.android.tools/ddmlib/r13/com/android/ddmlib/DdmPreferences.java#44). If you dig up the sourcecode for screenShotTaker.jar, you might be able to call DdmPreferences.setTimeout(int) before taking the screenshot to give yourself more breathing room on the tablet.
β
Reply to this email directly or view it on GitHub (#69 (comment)).β
Reply to this email directly or view it on GitHub (#69 (comment)).
from calabash-android.
Yes, I like GET /screenshot
;)
from calabash-android.
They take a look at ab8601d.
Does that work for you on large displays?
I just tested it on a 720*1280 display with no issues. (curl localhost:34777/screenshot -o /dev/null
took 0.7 second)
from calabash-android.
Related Issues (20)
- Can't run first test
- Gem::ConflictError HOT 13
- Canβt support Flutter HOT 2
- NullObjectReference in Xamarin.UITest 3.0 HOT 2
- Calabash Instrumentation fail due to UnsatisfiedLinkError HOT 1
- How to run scenario again if it fails? HOT 2
- Android Q Support HOT 11
- Touches on list item in AlertDialog works intermittently
- This path split not support windows
- INJECT_EVENTS permission issue HOT 2
- Unable resign the apk file- Showing the alert as "No such file or directory - "C:/android-sdks/platform-tools/aapt" HOT 2
- Undefined method `feature' for #<Cucumber HOT 2
- META-INF CERT.RSA not detected HOT 9
- Errors attempting to use UiAutomator2 features HOT 1
- Calabash roadmap
- set_selection(-1, -1) unsuccessful on android 10 on some pop up view
- Facing issue in command reinstall_apps, ruby
- Calabash-android resign with signature scheme v2 HOT 1
- GitHub Security Lab (GHSL) Vulnerability Report: GHSL-2022-095
- HTTPClient::KeepAlive Disconnected - Cucumber 8.0.0 & 7.1.0
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 calabash-android.