How use semantic labels in appium flutter

I want to trigger interactions on my widgets through their semantic labels but for some reason appium isn’t able to identify the semantic labels on the widgets. The semantic labels are visible in the FlutterWidget inspector though so i can’t figure out why its not able to find it. Any help??

What driver? There are currently 2 Flutter drivers available:

And there are use cases for both Xcuitest and Uiautomator2:

Since Flutter 3.19, Flutter apps can expose identifier for SemanticsProperties as resource-id in Android and accessibilityIdentifier in iOS.

Whichever one you are using, you might want to try one of the others as suits your needs best.

I’m using the appium flutter integration driver. Trying to use it for end to end testing of the flutter app

I don’t know Flutter all that well, but could you be looking at this issue:

Looks like it can happen in debug builds too. I don’t see this as being currently fixed, unfortunately. Got it from the link you cited:

:warning: Testing on real iOS devices for semanticsLabel may not work due to an issue raised with Flutter. For updates and more information, please refer to GitHub issue #151238.