1

I'm trying to run integration tests of a Flutter web (not Android/iOS) app on a hosted device farm like BrowserStack or Sauce Labs. It seems that the Flutter driver or integration tester are only designed to run on the local machine you're testing on. They require a custom driver for the browser and that driver doesn't seem able to connect to a remote browser. Has anyone found a way through port forwarding or something clever to overcome this limitation? Or does the device farm host have to run the Flutter driver themselves?

The ability to run automated tests on a variety of browsers and devices is critical to CI/CD and it seems odd that Flutter doesn't support this short of managing your own device farm.

A screenshot of flutter drive -h: enter image description here

We can't use a regular Selenium grid/driver because Flutter is rendering to a canvas or SVG through shadow dom elements which makes it pretty infeasible to drive with traditional HTML/CSS selectors.

Noland
  • 730
  • 6
  • 16

2 Answers2

1

I believe you have created a support ticket with BrowserStack, I will be sure to get back to you on that shortly.

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 29 '22 at 05:44
1

As per tech support from both BrowserStack and Sauce Labs, testing Flutter web apps is not currently supported and there are no active plans to move in that direction. :-( Maybe someone will post a creative solution here with port forwarding or the legacy Flutter web driver (not integration driver).

Noland
  • 730
  • 6
  • 16