Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run Selenium WebDriver tests in an embedded QT Webkit browser?

I am working on a series of web applications written using Google Web Toolkit (GWT). As part of our testing we have successfully used selenium-rc for a long time. We are looking to migrate to Selenium 2 and use the WebDriver interface.

The complication is that one of our clients is a custom .Net application which launches our web applications using an embedded QT Webkit browser. We are concerned that moving to Selenium 2 will mean that we are unable to run Selenium tests in this client which will be a big problem as it currently comprises the majority of our clients.

Having done some research all I have been able to find is the webkitdriver project on Google code. However this just seems to support testing against a headless webkit which isn't what we want.

Does anyone else have any experience of testing an embedded QT webkit browser using Selenium 2 and WebDriver? I would love to be able to make this work.

like image 769
MikeD Avatar asked May 03 '12 08:05

MikeD


2 Answers

I know, that it's an old question, but if you are still interested in it, you can use Qt WebDriver that was opensourced not too long ago. You can learn more about it here https://github.com/cisco-open-source/qtwebdriver/wiki . And by the way, you can test Qt applications too

like image 158
Liberus Avatar answered Oct 20 '22 19:10

Liberus


It will be a lot of work. For PhantomJS, we integrate Ghost Driver which is an implementation of WebDriver Wire protocol (see the release notes for version 1.8). You can see from the source code of Ghost Driver that it is far from trivial. On top of that, you need to hook the protocol implementation to various QtWebKit API, also quite an amount of work.

like image 31
Ariya Hidayat Avatar answered Oct 20 '22 19:10

Ariya Hidayat