问题
Looking for a UI integration test strategy for Flutter. We'd love to use Silenium/Ghost Inspector but seems that is not practical due to lack of html id's or CSS classes in Flutter (Add id or name property or other means of identification for Flutter Web applications?). Or has anyone found a way round that?
In the meantime Flutter Driver has only very basic documentation for simple tests like finding a button and pressing the button. Anyone know if I can do other operations like navigate to a specific page (e.g. using a # url fragment), test a link which leads to an external site, check visual setup of the page against an image, and other such tests which would be standard in Silenium and the like.
Thanks!!
回答1:
Well seems Flutter Driver is still very limited so I have instead found a strategy for using Selenium, posted full details here: Strategy to use Selenium browser testing with Flutter Web apps
来源:https://stackoverflow.com/questions/62615379/advanced-features-with-flutter-driver-or-silenium-ghost-inspector