start method

Future<void> start({
  1. bool debugLogging = false,
})

Implementation

Future<void> start({bool debugLogging = false}) async {
  try {
    if (debugLogging) {
      print('starting the chromedriver process');
    }
    final process = _process = await Process.start(
      'chromedriver',
      [
        '--port=4444',
      ],
    );
    listenToProcessOutput(process, printTag: 'ChromeDriver');
  } catch (e) {
    // ignore: avoid-throw-in-catch-block, by design
    throw Exception('Error starting chromedriver: $e');
  }
}