ios-webkit-debug-proxy 说明

支持IOS 13.0以下

参考:https://github.com/google/ios-webkit-debug-proxy

工作原理图:

启动命令,直接:ios_webkit_debug_proxy

  • --debug for verbose output.
  • --frontend to specify a frontend
  • --help for more options.
  • Ctrl-C to quit. Also, the proxy can be left running as a background process.

指定前端:

ios_webkit_debug_proxy -f chrome-devtools://devtools/bundled/inspector.html
ios_webkit_debug_proxy -f ~/chromium/src/third_party/WebKit/Source/devtools/front_end/inspector.html
ios_webkit_debug_proxy -f http://foo.com:1234/bar/inspector.html
http://chrome-devtools-frontend.appspot.com/static/27.0.1453.93/devtools.html

appium中封装API使用的协议:Webkit remote debugger protocol

https://github.com/appium/appium-remote-debugger

 

js发送websocket请求格式:

websocket.send(JSON.stringify({id:2,method:"DOM.getAttributes",params:{nodeId:12}}))

 

tips:很多方法不支持。

 

参考:

CDP协议命令:https://chromedevtools.github.io/devtools-protocol/tot/DOM/#method-requestNode

CDP协议详解:https://github.com/Pines-Cheng/blog/issues/82

最新协议开发者:https://inspect.dev/why

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值