6

Is it possible to use selenium with qt c++ ?

Seems like there are no official support from selenium for C++?

http://seleniumhq.org/download/

001
  • 62,807
  • 94
  • 230
  • 350
  • Am I right, that you want to test Qt applications with Selenium? Or you want just write tests in C++? – Lol4t0 Jan 21 '12 at 20:50
  • Rather than driving selenium via qt, you could drive QtWebKit. It would lack a bit of the infrastructure that selenium provides, but.. it's worked pretty good for me. – synthesizerpatel Feb 07 '12 at 08:11

3 Answers3

1

There is a Webdriver for Qt applications: https://github.com/cisco-open-source/qtwebdriver

  • Use a selenium bindings (python, java etc..) to write tests and send command with the wire protocol
  • Install the Qtwebdriver on the Qt application side
  • Then you can automate you Qt application with selenium tests
Kur00Hazama
  • 619
  • 6
  • 4
1

You might be able to use json wire protocol to communicate with webdriver server within Qt/C++ application, but consider using some scripting language instead. For example Python is pretty easy to learn and has webdriver bindings.

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

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

Stan Prokop
  • 5,579
  • 3
  • 25
  • 29
  • Can you please tell me how to use json wire protocol thru a c++ application ,to automate a webbrowser? – Metoo Jan 24 '14 at 13:55
-1

Please look library https://github.com/linotex/quelenium. I hope its help

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – ZygD Jul 28 '15 at 19:21