so to give the background about my issue, the mobile app i’m testing build using Flutter. I’m using Appium xcuitest driver with webdriver.io and Typescript for the mobile test automation. I have added semantic labels to use as accessibiliy labels in Appium inspector and so far it’s working great except I’m not able to get the text from elements instead that accessibility label get returned.
I tried few ways like below to get text but still results same.
await expect(this.emailSuccessTitle).toHaveText('Sent successfully!')
await this.emailSuccessTitle.getText();'
This is the result i’m getting, actually ’emailSuccessTitle’ is an accessibility label added through the Flutter semantic label.
Expected: "Sent successfully!"
Received: "emailSuccessTitle"
Iv read some threads regarding this mentioned its related to WDA implementation and most soultions are related React-Native like adding testID = etc. If anyone knows how to overcome this issue for Flutter much appreciated. Thank you!