← Back to Target domain

Target.attachToBrowserTarget

Attaches to the browser target, only uses flat sessionId mode.

Domain: Target experimental

Returns

NameTypeDescription
sessionIdSessionIDId assigned to the session.

Example Request

{
  "id": 1,
  "method": "Target.attachToBrowserTarget"
}

Example Response

{
  "id": 1,
  "result": {
    "sessionId": "SESSION_001"
  }
}

Usage in Node.js

const result = await send('Target.attachToBrowserTarget');
console.log(result);
// {"sessionId": "SESSION_001"}