You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
The only issue here is that the resolution is not always consistent. For example, I have seen my Galaxy S6 report most screenshots as 360x560 when running Chrome, however some pages report 368x573.
Another option would be: instead of returning a size, just return the string 'device' or 'default' instead of trying to grab a resolution.
Yet another option would be to rearrange the logic to grab the resolution from the screenshot PNG itself.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I try to use this plugin and test on a real Android device, I get the following error message:
Failed: unknown error: operation is unsupported on Android
The root cause is in
_getProperties()
, the call tobrowser.manage().window().getSize()
is not supported on Android.My workaround is the following:
The only issue here is that the resolution is not always consistent. For example, I have seen my Galaxy S6 report most screenshots as 360x560 when running Chrome, however some pages report 368x573.
Another option would be: instead of returning a size, just return the string
'device'
or'default'
instead of trying to grab a resolution.Yet another option would be to rearrange the logic to grab the resolution from the screenshot PNG itself.
The text was updated successfully, but these errors were encountered: