connectToTab method

Future<ChromeTab?> connectToTab(
  1. String url, {
  2. Duration timeout = const Duration(seconds: 20),
})

Implementation

Future<ChromeTab?> connectToTab(
  String url, {
  Duration timeout = const Duration(seconds: 20),
}) async {
  return await _connectToTab(
    connection: ChromeConnection(Uri.parse(url).host, debugPort),
    tabFound: (tab) => tab.url == url,
    timeout: timeout,
  );
}