How do we add selectors/ids to Flutter widgets so they can be accessed from Appium

前端 未结 2 1625
孤城傲影
孤城傲影 2021-01-24 06:24

we want to use Appium/Selenium to do automated testing on a Flutter application. Some elements do not have selectors when viewed in Selenium. In Android we just add ids onto eve

2条回答
  •  我在风中等你
    2021-01-24 07:22

    Prior to this morning I knew nothing of Flutter. A few hours later and I can safely say "you don't." While Flutter makes developing an application quick and easy, it removes a lot of the control you have, including the level of customization you're looking for.

    There are hits on this on official Flutter message boards dating back a year or two, but there were no answers.

    You could attempt locating everything by text? Kluge, difficult or impossible to maintain, but likely your only option at this point.

提交回复
热议问题