远程调试启动:
chromium-browser --remote-debugging-port=9222 --user-data-dir='~/code/chrome-test'
命令:
http://localhost:9222/json/protocol #获取协议
http://localhost:9222/json/version #获取版本
http://localhost:9222/json/list #或者 http://localhost:9222/json 获取可用网页tab
http://localhost:9222/json/new?{url}
http://localhost:9222/json/activate/{targetId}
http://localhost:9222/json/close/{targetId}
http://localhost:9222/devtools/page/{targetId}
http://localhost:9222/devtools/inspector.html #
chrome控制端口
chrome://flags/
chrome://inspect/#devices
只是看了新建,列表,关闭。给了一大堆协议,但是始终不得要领。不知道怎么控制chrome浏览器,得到我想要的东西。
既然这个接口看不懂,只有想其他办法了。