Future start()

in packages/web_drivers/lib/safari_driver_runner.dart [18:28]


  Future<void> start({String version = 'system'}) async {
    if (!io.Platform.isMacOS) {
      throw AssertionError('The operating system must be MacOS: '
          '${io.Platform.operatingSystem}');
    }
    final io.Process process = await runDriver(version: version);
    final int exitCode = await process.exitCode;
    if (exitCode != 0) {
      throw Exception('Driver failed with exitcode: $exitCode');
    }
  }