Help
How to Test Flutter Apps Using Accessibility Mode?
Steps to Test Flutter Apps Using Accessibility Mode
Section titled “Steps to Test Flutter Apps Using Accessibility Mode”-
Right-click anywhere on the Flutter app screen.
-
Select Inspect from the context menu.
-
In the Elements tab, look for a hidden element that looks like this:

-
Click on the hidden element so it becomes selected in the DOM.
-
Open the Console tab in DevTools.
-
Run the following command in the console to activate accessibility mode:
$0.click();-
Check the Elements tab again. A whole new tree of elements will be added to the DOM. You should now see elements like:

-
Use these aria-label values to locate elements in your automation tests.
-
Start recording your test using your preferred automation tool.
-
Interact with the elements using their aria-label attributes.
- Run your test. It should now successfully interact with the Flutter UI using accessibility-based locators.
