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
454 stars 183 forks source link

Does the Appium Flutter Driver support accessibility testing? #610

Closed pothurajtharun closed 11 months ago

pothurajtharun commented 11 months ago

Hi All,

I was automating flutter mobile app using appium-flutter-driver. It works great. Now I would like to perform accessibility testing for flutter mobile app for both iOS and Android. Does appium-flutter-driver supports accessibility testing ?

Please help me with some pointers.

Thanks!

KazuCocoa commented 11 months ago

What kind of behavior is expected? For example, if an element has content-description in Android, such a thing? Then, you can check with uia2/xcuitest driver rather than this since uia2/xcuitest can find elements -> these elements are exposed for accessibility functionality (usually)

pothurajtharun commented 11 months ago

@KazuCocoa, The application has accessibility features Screen Readers(Talk back,Voice over), Large Fonts, Contrast etc. These all are flutter elements having some semantic label or other finder class elements.

KazuCocoa commented 11 months ago

Then, if you could find these elements with accessibility id locator with NATIVE_APP context in this driver or UIA2/XCUITest drivers, OS usually can detect them for Voice over etc. Font size etc depends on https://api.flutter.dev/flutter/flutter_driver/flutter_driver-library.html that is provided by Flutter and this driver depends on that.