appium / appium-flutter-driver

Appium Flutter Driver is a test automation tool for Flutter apps on multiple platforms/OSes. Appium Flutter Driver is part of the Appium mobile test automation tool maintained by community
MIT License
470 stars 183 forks source link

appium inspector not work #744

Closed fauzisunarya closed 1 month ago

fauzisunarya commented 1 month ago

Hello, I am using the Appium inspector to get the selector on the flutter application. But I am experiencing the following problems. What is the solution? I have followed all the documentation in the Flutter Appium driver.

image

image

KazuCocoa commented 1 month ago

It is expected because:

Flutter context does not support page source Please use getRenderTree command instead

https://github.com/appium/appium-flutter-driver?tab=readme-ov-file#note

Please use NATIVE_APP context. To get available element resources, please use getRenderTree command as addressed in the README

fauzisunarya commented 1 month ago

@KazuCocoa I have read it, but I am confused about getRenderTree, where to put it, please help me

KazuCocoa commented 1 month ago

It needs to call via execute_script. The response is text, so it does not work with the inspector. https://github.com/appium/appium-flutter-driver?tab=readme-ov-file#commands https://appium.io/docs/en/latest/guides/execute-methods/