Skip to content
hekra01 edited this page Apr 5, 2017 · 3 revisions

Any Selenium code can be used with QtWebdriver.

However to run the QtWebdriver test suites proceed as follows:

  • Checkout the modified selenium version (based on Selenium 2.43.1):
$ git checkout https://github.com/cisco-open-source/selenium.git
$ cd selenium
  • Set environment variables:
# set the path to the qtwebdriver exe
$ export qtwebdriver=/home/user/qtwebdriver/out/desktop/release/Default/WebDriver

# set LD_LIBRARY_PATH
$ export LD_LIBRARY_PATH=/home/user/qt/lib:$LD_LIBRARY_PATH
  • Run test suites (Note the tests require ant 1.8.2 installed to work properly)
$ ./go test_qtwebkit --trace
  • The test results are in build/test_logs
  • The list of all possible tests is in the Readme and in the Rakefile:
./go test_qtwebkit
./go test_wd_native_qt4
./go test_wd_native_qt5
./go test_wd_hybrid_qt4
./go test_wd_hybrid_qt5
./go test_wd_quick1
./go test_wd_quick2
  • The sources of the tests is in selenium/java/client/test/org/openqa/selenium/qtwebkit/
Clone this wiki locally