LaunchExistBrowser
GET
/devtool/launch/{profileId}Last modified:Â a month ago
Connect to or launch an existing browser
Request
Path Params
profileId
stringÂ
required
ProfileId
Query Params
config
stringÂ
optional
launch config, url-encoded json string in query, see full schema in body params
Body Params application/json
autoClose
booleanÂ
optional
indicates autoclose browser after finished
clearCacheOnClose
booleanÂ
optional
indicates delete local userdata when browser closed if not a once profile
forceUseLatestKernel
booleanÂ
optional
force start with latest kernel if no compatible kernel found
Example:
true
headless
booleanÂ
optional
headless
incognito
booleanÂ
optional
incognito mode
profileId
stringÂ
optional
profileId for launch existing profile, not working on once profile
remoteDebuggingPort
integerÂ
optional
browser port
startupUrls
array[string]
optional
startup urls
timedCloseSec
integerÂ
optional
indicates autoclose browser after specified seconds
Example:
30
args
objectÂ
required
custom args with kernel command line switches,for example: {"--proxy-bypass-list":"domain1,domain2", "--headless":"","--load-extension":"dir1,dir2"}
Example
{
"autoClose": true,
"clearCacheOnClose": true,
"forceUseLatestKernel": true,
"headless": true,
"incognito": true,
"profileId": "string",
"remoteDebuggingPort": 0,
"startupUrls": [
"string"
],
"timedCloseSec": 30,
"args": {}
}
Request samples
Responses
OK(200)
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
code
integerÂ
optional
data
object (browser.RemoteDebuggingAddress)Â
optional
port
integerÂ
optional
profileId
stringÂ
optional
webSocketDebuggerUrl
stringÂ
optional
err
booleanÂ
optional
msg
stringÂ
optional
Example
{
"code": 0,
"data": {
"port": 0,
"profileId": "string",
"webSocketDebuggerUrl": "string"
},
"err": true,
"msg": "string"
}
Last modified: a month ago