0

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.

1 Answer 1

0

Is there a way to listen Android internal exceptions?

If you use Appium Desktop instead of the NPM version, then you can see the output in the window.

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.