class TargetDomain
(source)
Supports additional targets discovery and allows to attach to them.
fun activateTarget(input: ActivateTargetRequest): Single<ResponseFrame>
Activates (focuses) the target. |
|
fun attachedToTarget(): Flowable<AttachedToTargetEvent>
Issued when attached to target because of auto-attach or |
|
fun attachedToTargetTimed(): Flowable<Timed<AttachedToTargetEvent>>
Issued when attached to target because of auto-attach or |
|
fun attachToBrowserTarget(): Single<AttachToBrowserTargetResponse>
Attaches to the browser target, only uses flat sessionId mode. |
|
fun attachToTarget(input: AttachToTargetRequest): Single<AttachToTargetResponse>
Attaches to the target with given id. |
|
fun closeTarget(input: CloseTargetRequest): Single<CloseTargetResponse>
Closes the target. If the target is a page that gets closed too. |
|
fun createBrowserContext(): Single<CreateBrowserContextResponse>
Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one. |
|
fun createTarget(input: CreateTargetRequest): Single<CreateTargetResponse>
Creates a new page. |
|
fun detachedFromTarget(): Flowable<DetachedFromTargetEvent>
Issued when detached from target for any reason (including |
|
fun detachedFromTargetTimed(): Flowable<Timed<DetachedFromTargetEvent>>
Issued when detached from target for any reason (including |
|
fun detachFromTarget(input: DetachFromTargetRequest): Single<ResponseFrame>
Detaches session with given id. |
|
fun disposeBrowserContext(input: DisposeBrowserContextRequest): Single<ResponseFrame>
Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks. |
|
fun events(): Flowable<ProtocolEvent>
Returns flowable capturing all Target domains events. |
|
fun exposeDevToolsProtocol(input: ExposeDevToolsProtocolRequest): Single<ResponseFrame>
Inject object to the target's main frame that provides a communication channel with browser target. |
|
fun getBrowserContexts(): Single<GetBrowserContextsResponse>
Returns all browser contexts created with |
|
fun getTargetInfo(input: GetTargetInfoRequest): Single<GetTargetInfoResponse>
Returns information about a target. |
|
fun getTargets(): Single<GetTargetsResponse>
Retrieves a list of available targets. |
|
fun receivedMessageFromTarget(): Flowable<ReceivedMessageFromTargetEvent>
Notifies about a new protocol message received from the session (as reported in
|
|
fun receivedMessageFromTargetTimed(): Flowable<Timed<ReceivedMessageFromTargetEvent>>
Notifies about a new protocol message received from the session (as reported in
|
|
fun sendMessageToTarget(input: SendMessageToTargetRequest): Single<ResponseFrame>
Sends protocol message over session with given id. |
|
fun setAutoAttach(input: SetAutoAttachRequest): Single<ResponseFrame>
Controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets. |
|
fun setDiscoverTargets(input: SetDiscoverTargetsRequest): Single<ResponseFrame>
Controls whether to discover available targets and notify via
|
|
fun setRemoteLocations(input: SetRemoteLocationsRequest): Single<ResponseFrame>
Enables target discovery for the specified locations, when |
|
fun targetCrashed(): Flowable<TargetCrashedEvent>
Issued when a target has crashed. |
|
fun targetCrashedTimed(): Flowable<Timed<TargetCrashedEvent>>
Issued when a target has crashed. |
|
fun targetCreated(): Flowable<TargetCreatedEvent>
Issued when a possible inspection target is created. |
|
fun targetCreatedTimed(): Flowable<Timed<TargetCreatedEvent>>
Issued when a possible inspection target is created. |
|
fun targetDestroyed(): Flowable<TargetDestroyedEvent>
Issued when a target is destroyed. |
|
fun targetDestroyedTimed(): Flowable<Timed<TargetDestroyedEvent>>
Issued when a target is destroyed. |
|
fun targetInfoChanged(): Flowable<TargetInfoChangedEvent>
Issued when some information about a target has changed. This only happens between
|
|
fun targetInfoChangedTimed(): Flowable<Timed<TargetInfoChangedEvent>>
Issued when some information about a target has changed. This only happens between
|