【问题标题】:Monitor network with headless chrome使用无头 chrome 监控网络
【发布时间】:2017-06-05 17:45:25
【问题描述】:

我很高兴能使用 headless chrome,我想要 Phatom.js 中的 onResourceRequested 之类的功能。

但是我没有找到相应的监控HttpRequest的函数。查了dev tools documentation,发现很多函数都用requestId,但是连获取这个id的函数都没有,怎么监控网络呢?

【问题讨论】:

    标签: google-chrome phantomjs google-chrome-devtools headless


    【解决方案1】:

    It's there, just a bit buried。我最终想将此功能添加到Navalia,因为它既有用又难以 grep(就像很多 CDP 一样)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多