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

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

问题描述

它说

ChromeDriver 是一个独立的服务器,它实现了 W3C WebDriver 标准

ChromeDriver is a standalone server that implements the W3C WebDriver standard

看起来 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?

推荐答案

为了方便查找,我将 anwser 从评论移到这里.

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

Chrome 驱动程序通过基于 websocket 的 Chrome DevTools Protocol 控制 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天全站免登陆