Skip to main content

QTA driver for Web

Project description


Build Status PyPi version GitHub tag Documentation Status

QT4W (Quick Test for Web) is a QTA test automation driver for Web.


  • Android platform: support web automated testing based on webkit, X5 (used with QT4A).
  • IOS platform: Support Web automation testing for embedded pages of IOS applications and browser applications (used with QT4I).
  • Windows platform: Supports web automation based on Chrome, IE kernel (used with QT4C), Now QT4C is in the open source process.

QT4W consists of three modules: WebView, webDriver, and WebControl module.


WebView is an abstraction of the browser window, which is a re-encapsulation of the native control. QT4W only defines the relevant interface of WebView, but does not give a concrete implementation. QT4X provides some implementations of WebView on each side. For example, QT4C provides implementations such as IeWebView and ChromeWebView. Following is the list of supported WebView.

WebView Platform/OS Description Provider
IE Windows IE browser or embedded IE window, supporting version from 7 to 11 Provided by QT4C
Chrome Windows Chrome browser or embedded Webkit window Provided by QT4C
TBS Windows QQ browser or embedded QQ browser window Provided by QT4C
CEF Windows Chromium embedded window Provided by QT4C
Chrome Linux Chrome headless browser Provided by chrome-headless-browser
AndroidBuildin Android build-in browser and embedded Web window on Android Provided by QT4A
X5 Android QQ browser or embedded QQ browser(X5) window Provided by QT4A
XWalk Android embedded XWalk window Provided by AndroidWXMPLib
iOSBuildin iOS build-in browser and embedded Web window on iOS Provided by QT4i
WeChat Mini Program&WeChat H5 WeChat Android WeChat Mini Program OR WeChat H5 Provided by AndroidWXMPLib
Chrome MacOS Chrome browser or embedded Webkit window Provided by QT4Mac


WebDriver is the driver layer of web automation. This module is mainly used to handle Dom structure related operations, such as finding web elements. Implementation of WebDriver mostly involved with Browser engine.

Following is the list of supported WebDriver.

WebDriver 说明 相关实现代码
IE IE Trident engine Provided by QT4W
Webkit Webkit engine Provided by QT4W


The WebControl module defines the WebElement and WebPage interfaces and provides implementations. In addition, QT4W also encapsulates other common web elements that are used to encapsulate pages for web automation.Webelement and WebPage usage refer to usage documentation。

Usage scenarios and installation

QT4W can be used for web applications or embedded page automation, which cannot be used independently and needs to be used in conjunction with other native layer automation frameworks:

  • Android: use and installation, please refer to QT4A Document.
  • iOS: use and install, please refer to QT4i document.
  • Windows: use and install, please refer to QT4C document


QT4W(Quick Test for Web)是QTA测试体系中的一环,主要用于Web自动化测试。


  • Android平台:支持基于webkit,X5等内核Web自动化测试(和QT4A一起使用)。
  • IOS平台:支持IOS应用的内嵌页面及浏览器应用的Web自动化测试(和QT4I一起使用。
  • Windows平台:支持基于Chrome,IE内核的Web自动化测试(和QT4C一起使用),目前QT4C正在开源流程中。

QT4W是QTA测试体系中Web自动化测试的基础, 包含三个模块:WebView、webDriver以及WebControl模块。


WebView是对浏览器窗口的抽象,是对原生控件的再次封装。QT4W只是定义了WebView的相关接口,并未给出具体实现。QT4X各端提供了部分WebView的实现,例如QT4C中提供IeWebView、ChromeWebView等实现。 目前QT4W支持的WebView有:

WebView 平台或操作系统 说明 相关实现代码
IE Windows IE浏览器和内嵌页面使用,支持IE 7~11 由QT4C提供
Chrome Windows Chrome浏览器和内嵌页面使用 由QT4C提供
TBS Windows QQ浏览器和相关内嵌页面使用 由QT4C提供
CEF Windows Chromium内嵌页面使用 由QT4C提供
Chrome Linux Linux下的Headless模式的Chrome浏览器使用 由chrome-headless-browser提供
AndroidBuildin Android Android系统内置浏览器和内嵌页面使用 QT4A提供
X5 Android QQ移动浏览器和X5内核内嵌页面使用 QT4A提供
XWalk Android XWalk内核内嵌页面使用 AndroidWXMPLib提供
iOSBuildin iOS iOS系统内置浏览器和内嵌页面使用 QT4i提供
微信小程序&微信H5 Android微信 微信小程序或者微信H5使用 AndroidWXMPLib提供
Chrome MacOS Mac OS下的Chrome浏览器和内嵌页面使用 由QT4Mac提供





WebDriver 说明 相关实现代码
IE IE内核使用 QT4W内置
Webkit Webkit内核使用 QT4W内置






  • Android端的使用及安装,请参考QT4A文档
  • iOS端的使用及安装,请参考QT4i文档
  • Windows端的使用及安装,请参考QT4C文档



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for qt4w, version 2.1.5
Filename, size File type Python version Upload date Hashes
Filename, size qt4w-2.1.5.tar.gz (51.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page