2

Is it possible to get a list of the installed browsers using dart:io ?

More specifically, I would want to have a variable List installedBrowsers in my grinder file, so that my grinder will work independently of the OS and installed browsers.

@DefaultTask('Test')
test() =>
    new TestRunner().test(
        files: myFile,
        platformSelector: installedBrowsers);
Kasper
  • 12,594
  • 12
  • 41
  • 63

1 Answers1

3

You can use the package which to find executables with a certain name. Alternatively you can require one or more specific environment variables to be set to get the browser names and/or executable paths of the available browsers.

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567