Chrome Dev Tools API & Selenium WebDriver

后端 未结 2 506
长情又很酷
长情又很酷 2020-12-15 06:28

I am experimenting with Selenium Web Driver for automating my browser integration tests. I see that Chrome Dev Tools comes with a console API for invoking certain dev tool f

相关标签:
2条回答
  • 2020-12-15 06:50

    You can actually use the debugger protocol as mentioned by @loislo above – you might find more useful the link https://developer.chrome.com/devtools/docs/debugger-protocol

    Just add the flag when opening Chrome and remote-debug it! :)

    0 讨论(0)
  • 2020-12-15 06:58

    Chrome DevTools has two parts, front-end with UI and back-end in the native code of the renderer. These parts work with each other via protocol. The protocol is described in the protocol.js file

    Chrome can work in remote debugging mode when it exposes tcp socket that can be used for interacting with the backend part of DevTools. This feature is actively used in Chrome browser Telemetry toolset

    This toolset was written in python and we keep it in sync with the current version of the protocol. The toolset has the code for working with heap profiler part and other parts of the DevTools.

    0 讨论(0)
提交回复
热议问题