-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screenshot is not taken on a real device when webview is used #356
Comments
Do you observe any errors in the logcat output? is FLAG_SECURE set for the view, which is shown on the screen (e. g. is it possible to take a screenshot manually?) |
Sorry, I somehow missed your question. I do not see any errors and I don't think a flag is set or at least I cannot find it in the source code of the app. What do you mean by taking screenshot manually - directly through the phone/tablet? |
Yes, using the special shortcut (for different devices it is different) |
I checked it and I can take a screenshot manually using button shortcuts. |
@KazuCocoa did your PR resolve this? |
Not sure. But it should resolve this if the main reason is "webview" Do you have a time to try out? @ania-s |
Sorry for the delay but I was sick. I wanted to check it with the latest appium release, however, I cannot get the tests on android running with it as I get the following error:
Maybe I am missing sth but meanwhile if anyone knows what could be wrong I would appreciate any hint. Thanks |
Are you fine now?
I assume your environment had old modules. You should up to date them. |
I tried cleaning everything but I keep on getting this error. |
What the result of The command prints dependency versions |
npm list -g appium-espresso-driver appium-adb |
thanks. I assumed you had older appium-adb which had no Below was mine which worked.
What about below flow? It can force the espresso driver build with the repository's one.
|
@KazuCocoa unfortunately it doesn't make any difference. I cleaned my environment one more time as well as tried on a different machine and I cannot get it working. Not it even doesn't install the apps on the device (the testing app & appium), instead it throws the errors, like:
|
The setting app is probably below in your path.
Can you install it by manual via adb install command? |
Please ignore my previous comment - this error was my fault. I fixed it. Now I only get I will investigate it a little bit more as appium is not started at all. |
I managed to get the most recent version of appium working, however, I still cannot take screenshots on android device. Still the same behavior as previously. |
With Can you share the appium log? |
I didn't use the capability. Now when I added it, it works fine. Thanks for the fix. |
Thanks for the report :) |
I tried to take a screenshot on a real device while in webview and it looks that it doesn't work. In native context everything works fine. The log is below:
"appium": "1.11.0-beta.2"
The text was updated successfully, but these errors were encountered: