getFirstTab method

Future<ChromeTab?> getFirstTab({
  1. Duration timeout = const Duration(seconds: 20),
})

Implementation

Future<ChromeTab?> getFirstTab({
  Duration timeout = const Duration(seconds: 20),
}) async {
  return await _connectToTab(
    connection: ChromeConnection('localhost', debugPort),
    tabFound: (tab) => !tab.isBackgroundPage && !tab.isChromeExtension,
    timeout: timeout,
  );
}