Selenium Couldn’t identify App crashes Android
Sometimes app crashes. But Selenium can only handle “noSuchElementException” or “TimeOutException”. Does Appium runs a listener or something which tracks if the app is crashed? I really need the internal exception handling with selenium, like: “Object Not set to an instance of object” exception and such things. Is there a way to listen Android internal exceptions?
if there is not a way to do that, what is the way to do it? I do it with finding the stopped” text. but I don’t think it is the right way to handle app crash. Becasue sometimes app crashes but not shows the app stopped dialog, It just come back to main screen of Android.
P.S: I understand the concept of “TakesScreenshot” interface when test failed.
Read more here: Source link