chrome驱动程序如何与Chrome浏览器交互? [英] How does chrome driver interact with Chrome browser?

查看:132
本文介绍了chrome驱动程序如何与Chrome浏览器交互?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ChromeDriver是实现 W3C WebDriver标准

看起来W3C WebDriver标准仅定义了自动化程序和Chromedriver之间的接口.Chromedriver充当HTTP服务器,以从自动化程序获取命令.

It looks like W3C WebDriver standard only defines the interface between the automation program and Chromedriver. Chromedriver act as a HTTP server to get the command from automation program.

但是ChromeDriver如何与Chrome通信?

But how does ChromeDriver communicate with Chrome?

仍然通过HTTP协议吗?

Still through HTTP protocol?

如果是,我们在哪里可以获得有关详细信息的文档?Chrome内的哪个组件负责处理来自Chromedriver的命令?它是Chrome内置的,还是Chrome的扩展?

If yes, where could we get the documentation about the details? And what component inside of Chrome is in charge of handling the command from Chromedriver? Is it built in chrome or just an extension of Chrome?

推荐答案

为便于查找,我将注释从此处移到此处.

To make it easy to find, I move the anwser here from comments.

Chrome驱动程序通过基于Websocket的Chrome DevTools协议来控制Chrome浏览器.这篇文章提供更多详细信息

Chrome driver controls Chrome browser through Chrome DevTools Protocol which is based on websocket. This article gives more details

这篇关于chrome驱动程序如何与Chrome浏览器交互?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆