Skip to content
TestsigmaDOCS

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”
  1. Right-click anywhere on the Flutter app screen.

  2. Select Inspect from the context menu.

  3. In the Elements tab, look for a hidden element that looks like this: Flutter app

  4. Click on the hidden element so it becomes selected in the DOM.

  5. Open the Console tab in DevTools.

  6. Run the following command in the console to activate accessibility mode:

$0.click();
  1. Check the Elements tab again. A whole new tree of elements will be added to the DOM. You should now see elements like: Flutter apps 2

  2. Use these aria-label values to locate elements in your automation tests.

  3. Start recording your test using your preferred automation tool.

  4. Interact with the elements using their aria-label attributes.

  1. Run your test. It should now successfully interact with the Flutter UI using accessibility-based locators. Flutter apps 3