6

是否可以将硒与 qt c++ 一起使用?

似乎 selenium 没有对 C++ 的官方支持?

http://seleniumhq.org/download/

4

3 回答 3

1

您可能可以使用 json 有线协议与 Qt/C++ 应用程序中的 webdriver 服务器进行通信,但请考虑使用一些脚本语言。例如 Python 很容易学习并且有 webdriver 绑定。

http://code.google.com/p/selenium/wiki/JsonWireProtocol

http://code.google.com/p/selenium/wiki/PythonBindings

于 2012-02-07T22:30:13.023 回答
1

有一个用于 Qt 应用程序的 Webdriver:https ://github.com/cisco-open-source/qtwebdriver

  • 使用 selenium 绑定(python、java 等)编写测试并使用有线协议发送命令
  • 在Qt应用端安装Qtwebdriver
  • 然后您可以使用 selenium 测试自动化您的 Qt 应用程序
于 2015-10-01T23:41:06.473 回答
-1

请查看库https://github.com/linotex/quelenium。我希望它的帮助

于 2015-07-28T19:02:02.737 回答