【问题标题】:Firefox Marionette Commands Without Selenium And Geckodriver没有 Selenium 和 Geckodriver 的 Firefox Marionette 命令
【发布时间】:2021-03-27 00:30:22
【问题描述】:

我想直接通过 TCP 使用 Firefox 的 marionette 接口,而不使用任何 geckodriver 或 selenium 包。但我找不到任何关于木偶命令列表的文档。关于该协议的一般工作原理只有一个简短的文档here。但我需要的是一个完整的文档,包含接口和数据模型等所有可能的命令。

我在哪里可以找到它?

【问题讨论】:

  • 你没有说你想使用哪种编程语言,但是有一个Python client
  • @ou_ryperd 仍然只是另一个使用 marionette 端口与 firefox 通信的客户端。我想构建自己的客户端并直接通过 TCP 连接与 Marionette 端口进行通信。
  • 哦,我明白了。联系作者。 firefox-source-docs.mozilla.org/testing/marionette/…

标签: selenium-webdriver firefox geckodriver firefox-marionette


【解决方案1】:

我担心你不会以你想要的方式找到你想要的信息。

我发现在 golang (https://github.com/njasm/marionette_client) 中开发自己的库的最佳方法是阅读源代码。没有什么比这更好的了,对吧? :)

Marionette 命令主要是 WebDriver 的命令,因此通过阅读 Firefox 附带的 marionette 驱动服务器的源代码,您可以找到当前已实现的所有命令。

您可以在 searchfox 中浏览 Firefox 源代码。

更准确地说,这里是当前 Firefox 版本的 Marionette 驱动程序命令的直接链接:https://searchfox.org/mozilla-central/source/testing/marionette/driver.js#3896

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2021-12-09
  • 2017-11-15
  • 1970-01-01
  • 1970-01-01
  • 2017-08-30
  • 2017-04-04
  • 1970-01-01
  • 2021-05-10
相关资源
最近更新 更多