跳转到内容

启动浏览器

描述

启动指定的浏览器环境,成功返回 debuggingPort 自动化控制端口号。

请求格式

请求方法:

POST

请求 URL

/api/launchBrowser

请求参数

3 个参数任选其一

参数名类型必填描述
idint浏览器 ID
namestring名称
remarkstring备注

请求示例

json
{
  "id": 1
}

响应示例

成功

json
{
  "success": true,
  "debuggingPort": 443
}

错误

json
{
  "success": false,
  "error": "Browser list is empty or not found."
}

License BSD