Chrome Remote Interface v0.4.1 ChromeRemoteInterface.RPC.Target View Source
Supports additional targets discovery and allows to attach to them.
Link to this section Summary
Functions
Activates (focuses) the target.
Attaches to the target with given id.
Closes the target. If the target is a page that gets closed too.
Creates a new page.
Detaches session with given id.
Retrieves a list of available targets.
Sends protocol message over session with given id.
Controls whether to discover available targets and notify via
targetCreated/targetInfoChanged/targetDestroyed
events.
Link to this section Functions
activateTarget(page_pid) View Source
Activates (focuses) the target.
Parameters:
targetId -
activateTarget(page_pid, parameters) View Source
activateTarget(page_pid, parameters, opts) View Source
attachToTarget(page_pid) View Source
Attaches to the target with given id.
Parameters:
targetId -
attachToTarget(page_pid, parameters) View Source
attachToTarget(page_pid, parameters, opts) View Source
closeTarget(page_pid) View Source
Closes the target. If the target is a page that gets closed too.
Parameters:
targetId -
closeTarget(page_pid, parameters) View Source
closeTarget(page_pid, parameters, opts) View Source
createTarget(page_pid) View Source
Creates a new page.
Parameters:
url -
createTarget(page_pid, parameters) View Source
createTarget(page_pid, parameters, opts) View Source
detachFromTarget(page_pid) View Source
Detaches session with given id.
Parameters:
sessionId -
detachFromTarget(page_pid, parameters) View Source
detachFromTarget(page_pid, parameters, opts) View Source
experimental?() View Source
getTargets(page_pid) View Source
Retrieves a list of available targets.
Parameters:
getTargets(page_pid, parameters) View Source
getTargets(page_pid, parameters, opts) View Source
sendMessageToTarget(page_pid) View Source
Sends protocol message over session with given id.
Parameters:
message -
sendMessageToTarget(page_pid, parameters) View Source
sendMessageToTarget(page_pid, parameters, opts) View Source
setDiscoverTargets(page_pid) View Source
Controls whether to discover available targets and notify via
targetCreated/targetInfoChanged/targetDestroyed
events.
Parameters:
discover -