sebaslogen / CleanGUITestArchitecture

Sample project of Android GUI test automation using Espresso, Cucumber and the Page Object Pattern
MIT License
137 stars 31 forks source link

Exception while taking the screenshot #18

Closed pawankums closed 7 years ago

pawankums commented 7 years ago

hi, i am getting the below exception while taking the screenshot java.lang.ClassCastException: android.support.v7.view.ContextThemeWrapper cannot be cast to android.app.Activity

It says the error is in SpoonScreenshotAction getActivity method. I am using the latest commit. Please let me know how to resolve it.

sebaslogen commented 7 years ago

This seems to be the same problem as https://github.com/sebaslogen/CleanGUITestArchitecture/issues/12 Have you tried the latest version?

pawankums commented 7 years ago

@sebaslogen yes, i was using the latest version. However i was able to resolve the issue later. Thanks for your reply.