pl.wendigo.chrome.api.target

Package pl.wendigo.chrome.api.target

Contains DevTools Protocol Target domain implementation accessible via TargetOperations class.

Types

ActivateTargetRequest

data class ActivateTargetRequest

Represents request frame that can be used with Target#activateTarget operation call.

AttachedToTargetEvent

data class AttachedToTargetEvent : Event

Issued when attached to target because of auto-attach or attachToTarget command.

AttachToBrowserTargetResponse

data class AttachToBrowserTargetResponse

Represents response frame that is returned from Target#attachToBrowserTarget operation call. Attaches to the browser target, only uses flat sessionId mode.

AttachToTargetRequest

data class AttachToTargetRequest

Represents request frame that can be used with Target#attachToTarget operation call.

AttachToTargetResponse

data class AttachToTargetResponse

Represents response frame that is returned from Target#attachToTarget operation call. Attaches to the target with given id.

CloseTargetRequest

data class CloseTargetRequest

Represents request frame that can be used with Target#closeTarget operation call.

CloseTargetResponse

data class CloseTargetResponse

Represents response frame that is returned from Target#closeTarget operation call. Closes the target. If the target is a page that gets closed too.

CreateBrowserContextResponse

data class CreateBrowserContextResponse

Represents response frame that is returned from Target#createBrowserContext operation call. Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.

CreateTargetRequest

data class CreateTargetRequest

Represents request frame that can be used with Target#createTarget operation call.

CreateTargetResponse

data class CreateTargetResponse

Represents response frame that is returned from Target#createTarget operation call. Creates a new page.

DetachedFromTargetEvent

data class DetachedFromTargetEvent : Event

Issued when detached from target for any reason (including detachFromTarget command). Can be issued multiple times per target if multiple sessions have been attached to it.

DetachFromTargetRequest

data class DetachFromTargetRequest

Represents request frame that can be used with Target#detachFromTarget operation call.

DisposeBrowserContextRequest

data class DisposeBrowserContextRequest

Represents request frame that can be used with Target#disposeBrowserContext operation call.

ExposeDevToolsProtocolRequest

data class ExposeDevToolsProtocolRequest

Represents request frame that can be used with Target#exposeDevToolsProtocol operation call.

GetBrowserContextsResponse

data class GetBrowserContextsResponse

Represents response frame that is returned from Target#getBrowserContexts operation call. Returns all browser contexts created with Target.createBrowserContext method.

GetTargetInfoRequest

data class GetTargetInfoRequest

Represents request frame that can be used with Target#getTargetInfo operation call.

GetTargetInfoResponse

data class GetTargetInfoResponse

Represents response frame that is returned from Target#getTargetInfo operation call. Returns information about a target.

GetTargetsResponse

data class GetTargetsResponse

Represents response frame that is returned from Target#getTargets operation call. Retrieves a list of available targets.

ReceivedMessageFromTargetEvent

data class ReceivedMessageFromTargetEvent : Event

Notifies about a new protocol message received from the session (as reported in attachedToTarget event).

RemoteLocation

data class RemoteLocation

SendMessageToTargetRequest

data class SendMessageToTargetRequest

Represents request frame that can be used with Target#sendMessageToTarget operation call.

SetAutoAttachRequest

data class SetAutoAttachRequest

Represents request frame that can be used with Target#setAutoAttach operation call.

SetDiscoverTargetsRequest

data class SetDiscoverTargetsRequest

Represents request frame that can be used with Target#setDiscoverTargets operation call.

SetRemoteLocationsRequest

data class SetRemoteLocationsRequest

Represents request frame that can be used with Target#setRemoteLocations operation call.

TargetCrashedEvent

data class TargetCrashedEvent : Event

Issued when a target has crashed.

TargetCreatedEvent

data class TargetCreatedEvent : Event

Issued when a possible inspection target is created.

TargetDestroyedEvent

data class TargetDestroyedEvent : Event

Issued when a target is destroyed.

TargetInfo

data class TargetInfo

TargetInfoChangedEvent

data class TargetInfoChangedEvent : Event

Issued when some information about a target has changed. This only happens between targetCreated and targetDestroyed.

TargetOperations

class TargetOperations

Supports additional targets discovery and allows to attach to them.

Type Aliases

BrowserContextID

typealias BrowserContextID = String

SessionID

typealias SessionID = String

Unique identifier of attached debugging session.

TargetID

typealias TargetID = String