appium / appium-mac2-driver

Next-gen Appium macOS driver, backed by Apple XCTest
Apache License 2.0
115 stars 24 forks source link

Not able to inspect Flutter based Desktop App #186

Closed akagupta98 closed 1 year ago

akagupta98 commented 1 year ago

I am using appium 2 to automate flutter based desktop apps. But inspector is not able to identify the elements. Its not showing hierarchy of elements. ]

image

jlipps commented 1 year ago

it looks like however flutter assigns accessibility to elements it is doing so in a way that makes individual elements invisible to accessibility. the mac and ios drivers use accessibility to determine the existence of elements. so this is not a problem that this driver can fix. might reach out to the flutter community to see if there's a way to update the flutter app code to ensure accessibility labels are assigned correctly. there's a similar issue with react native where a certain technique ensures container elements don't hide their contained elements.