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.


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


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.


看看WWW :: WebKit,它是使用Gtk3 :: WebKit作为浏览器而非依靠外部Java服务器和安装的浏览器的WWW :: Selenium的替代替代品。

链接地址: http://www.djcxy.com/p/10726.html

上一篇: RESTful(WebAPI)服务中的CRUD操作

下一篇: 我如何在嵌入式QT Webkit浏览器中运行Selenium WebDriver测试?