getAnnotatedPageContent method

Future<String> getAnnotatedPageContent({
  1. bool? includeActionableInformation,
})

Get the annotated page content for the main frame. This is an experimental command that is subject to change. includeActionableInformation Whether to include actionable information. Defaults to true. Returns: The annotated page content as a base64 encoded protobuf. The format is defined by the AnnotatedPageContent message in components/optimization_guide/proto/features/common_quality_data.proto

Implementation

Future<String> getAnnotatedPageContent({
  bool? includeActionableInformation,
}) async {
  var result = await _client.send('Page.getAnnotatedPageContent', {
    if (includeActionableInformation != null)
      'includeActionableInformation': includeActionableInformation,
  });
  return result['content'] as String;
}