appium-inspector icon indicating copy to clipboard operation
appium-inspector copied to clipboard

inspector: every element has x=0 y=0 and with 'full screen' width and height

Open achtan opened this issue 2 years ago • 4 comments

The problem

every element that I inspect has: Screenshot 2022-06-17 at 14 26 05

Environment

  • I am running Appium Desktop version App Version: 2022.5.4 Electron: 13.6.9 Node.js: 14.16.0

  • I am on (pick one):

    • [x] Mac
    • [ ] Windows
    • [ ] Linux

achtan avatar Jun 17 '22 12:06 achtan

Hey @achtan, I believe that you are selecting a container or parent node that might be the size of you entire screen, meaning that the element you're selecting starts at the coordinates (0, 0) and has a width and height that takes up the entire screen. This doesn't seem to be an issue with the Inspector, but you may just be highlighting the wrong element!

emaan-c avatar Jun 17 '22 16:06 emaan-c

And there are some apps (like games for example) that only expose basic container elements, whereas all the user-interactable elements are opaque to the accessibility system (and therefore Appium). so it could be that Appium just can't see individual elements you'd like to work with.

jlipps avatar Jun 17 '22 16:06 jlipps

@emaan-c @jlipps but all my elements have this issue... so what should I do to make it work? I do have some elements with testId and accessible=true. I have a React Native app...

achtan avatar Jun 20 '22 07:06 achtan

you probably need to adjust the way you are using accessibility in your react native app. it may be hiding all the internal elements. i know @wswebcreation has written some things about this, maybe he can link here for reference?

jlipps avatar Jun 20 '22 19:06 jlipps

Closing due to no response

eglitise avatar May 26 '23 06:05 eglitise