Why Appium Inspector can not 'tap'?

720 views Asked by At

I'm using Appium Inspector to check the element of app. But when I start a session, the app on android mobile can be invoked, but the screen on inspector is just dark, even the splash screen of app can not be displayed. And the screen on inspector can not be tapped. When I tap, a loading will appear and after a while, it shows that fail to tapped.

Do you have any ideas about this?

1

There are 1 answers

0
kenneth On BEST ANSWER

If you use the option in the Inspector to select by source (the standard select option) Appium sometimes cannot make a distinction between overlay/underlay elements which aren't interactable.

There are several options you have in order to navigate and test smoothly in Appium to make your life a bit easier:

Option 1: Is to use the option Tap by coordinates. If you only need to navigate through Appium, this option makes your life a easier. It's just like you are touching the screen and mostly Appium works great for exploring through the app.

Option 2: After exploring through the app and making sure the clickpath or any testcase you have is solide, you can start to identify the elements you really need. !The behaviour of the Inspector can differ widely from the real AndroidDriver/AppiumDriver and therefore you can more safely use MobileElement(@FindBy).Click();! . Try and look for the most logical element in the XML tree (i.e. elements with button or input).