ApplicationCache

This CDP domain is experimental.

Types

Generally, you do not need to instantiate CDP types yourself. Instead, the API creates objects for you as return values from commands, and then you can use those objects as arguments to other commands.

class cdp.application_cache.ApplicationCacheResource(url, size, type_)

Detailed application cache resource information.

size = None

Resource size.

type_ = None

Resource type.

url = None

Resource url.

class cdp.application_cache.ApplicationCache(manifest_url, size, creation_time, update_time, resources)

Detailed application cache information.

creation_time = None

Application cache creation time.

manifest_url = None

Manifest URL.

resources = None

Application cache resources.

size = None

Application cache size.

update_time = None

Application cache update time.

class cdp.application_cache.FrameWithManifest(frame_id, manifest_url, status)

Frame identifier - manifest URL pair.

frame_id = None

Frame identifier.

manifest_url = None

Manifest URL.

status = None

Application cache status.

Commands

Each command is a generator function. The return type Generator[x, y, z] indicates that the generator yields arguments of type x, it must be resumed with an argument of type y, and it returns type z. In this library, types x and y are the same for all commands, and z is the return type you should pay attention to. For more information, see Getting Started: Commands.

cdp.application_cache.enable()

Enables application cache domain notifications.

Return type:Generator[Dict[str, Any], Dict[str, Any], None]
cdp.application_cache.get_application_cache_for_frame(frame_id)

Returns relevant application cache data for the document in given frame.

Parameters:frame_id (FrameId) – Identifier of the frame containing document whose application cache is retrieved.
Return type:Generator[Dict[str, Any], Dict[str, Any], ApplicationCache]
Returns:Relevant application cache data for the document in given frame.
cdp.application_cache.get_frames_with_manifests()

Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.

Return type:Generator[Dict[str, Any], Dict[str, Any], List[FrameWithManifest]]
Returns:Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.
cdp.application_cache.get_manifest_for_frame(frame_id)

Returns manifest URL for document in the given frame.

Parameters:frame_id (FrameId) – Identifier of the frame containing document whose manifest is retrieved.
Return type:Generator[Dict[str, Any], Dict[str, Any], str]
Returns:Manifest URL for document in the given frame.

Events

Generally, you do not need to instantiate CDP events yourself. Instead, the API creates events for you and then you use the event’s attributes.

class cdp.application_cache.ApplicationCacheStatusUpdated(frame_id, manifest_url, status)
frame_id = None

Identifier of the frame containing document whose application cache updated status.

manifest_url = None

Manifest URL.

status = None

Updated application cache status.

class cdp.application_cache.NetworkStateUpdated(is_now_online)