getCookies method

  1. @Deprecated('This command is deprecated')
Future<List<Cookie>> getCookies()

Returns all browser cookies for the page and all of its subframes. Depending on the backend support, will return detailed cookie information in the cookies field. Returns: Array of cookie objects.

Implementation

@Deprecated('This command is deprecated')
Future<List<network.Cookie>> getCookies() async {
  var result = await _client.send('Page.getCookies');
  return (result['cookies'] as List)
      .map((e) => network.Cookie.fromJson(e as Map<String, dynamic>))
      .toList();
}