Blank/Empty screenshot
See original GitHub issueHello,
A part of another project, we were playing around if it’s possible to take an screenshot when running some tests. We are having problems with that since all the screenshots we pull are empty/blank.
To reproduce it, it’s as simple ase using the following steps in a github action.
- name: Test
uses: reactiveCircus/android-emulator-runner@v2
with:
api-level: 29
force-avd-creation: false
arch: x86_64
target: google_apis
profile: Nexus 6
script: adb shell screencap -p /data/local/tmp/Screenshot.png; adb pull /data/local/tmp/Screenshot.png Screenshot.png;
- name: Upload screenshot
if: always()
uses: actions/upload-artifact@v3
with:
name: device-screenshot
path: ./*Screenshot.png
Are we missing something? is it expected that screenshots are blank/empty when using emulators inside github actions?
Issue Analytics
- State:
- Created a year ago
- Comments:13
Top Results From Across the Web
How to Troubleshoot Blank Screenshot in High Sierra
Step 1: Check Keyboard Settings. · Step 2: Reset Screenshot Settings. · Step 3: Boot Into Safe Mode. · Step 4: Use Terminal...
Read more >Upload your home screen (screenshot) to generate ... - iEmpty
Here you can upload your homescreen screenshot to generate your own custom empty icons and empty widgets background images. Quick steps. As easy...
Read more >Screenshot on Sierra gives blank image - Apple Community
Hi i work on high sierra 10.13.6, imac mid 2011, and since 10-15 days each time I catch a screenshot of a part...
Read more >Blank images in Puppeteer screenshots solved! - Peter Tran
Frustrated with getting blank images in Puppeteer Chrome ... an element outside of the viewport results in a blank / empty screenshot.
Read more >[Migrated] Android Screenshots are Blank or Scrambled
If your App Center Test Reports consistently show blank or scrambled screenshots on Android; the typical cause is that the app has disabled...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @mrk-han. We have that in our app, and on my dummy app for testing.
Let’s see if someone could bring more light here about possible issues around screenshots.
I expect they will work as well, any reason why they shouldn’t work?
I’ve also seen people running screenshot tests on headless emulators, I don’t think that’s an issue. As a reference, this issue (https://github.com/ReactiveCircus/android-emulator-runner/issues/196) is about screenshots, and the emulator options they are using is
-no-window
.