Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

selenium and qt c++?

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

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

http://seleniumhq.org/download/

like image 307
001 Avatar asked Jan 20 '12 01:01

001


2 Answers

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

like image 196
Stan Prokop Avatar answered Nov 04 '22 11:11

Stan Prokop


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
like image 37
Kur00Hazama Avatar answered Nov 04 '22 11:11

Kur00Hazama