Package: qt4w
QT4WQT4W (Quick Test for Web) is a QTA test automation driver for Web.FeaturesAndroid platform: support web automated testing based on webkit, X5 (used withQT4A).IOS platform: Support Web automation testing for embedded pages of IOS applications and browser applications (used withQT4I).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.WebViewWebView 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.WebViewPlatform/OSDescriptionProviderIEWindowsIE browser or embedded IE window, supporting version from 7 to 11Provided by QT4CChromeWindowsChrome browser or embedded Webkit windowProvided by QT4CTBSWindowsQQ browser or embedded QQ browser windowProvided by QT4CCEFWindowsChromium embedded windowProvided by QT4CChromeLinuxChrome headless browserProvided by chrome-headless-browserAndroidBuildinAndroidbuild-in browser and embedded Web window on AndroidProvided byQT4AX5AndroidQQ browser or embedded QQ browser(X5) windowProvided byQT4AXWalkAndroidembedded XWalk windowProvided byAndroidWXMPLibiOSBuildiniOSbuild-in browser and embedded Web window on iOSProvided byQT4iWeChat Mini Program&WeChat H5WeChat AndroidWeChat Mini Program OR WeChat H5Provided byAndroidWXMPLibChromeMacOSChrome browser or embedded Webkit windowProvided by  QT4MacWebDriverWebDriver 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说明相关实现代码IEIE Trident engineProvided byQT4WWebkitWebkit engineProvided byQT4WWebControlThe 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 installationQT4W 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 toQT4A Document.iOS: use and install, please refer toQT4i document.Windows: use and install, please refer to QT4C documentlinksUsage DocumentDesign DocumentQT4W(Quick Test for Web)是QTA测试体系中的一环，主要用于Web自动化测试。支持多种平台的Web自动化Android平台：支持基于webkit，X5等内核Web自动化测试（和QT4A一起使用)。IOS平台：支持IOS应用的内嵌页面及浏览器应用的Web自动化测试（和QT4I一起使用。Windows平台：支持基于Chrome，IE内核的Web自动化测试（和QT4C一起使用），目前QT4C正在开源流程中。QT4W是QTA测试体系中Web自动化测试的基础， 包含三个模块：WebView、webDriver以及WebControl模块。WebViewWebView是对浏览器窗口的抽象，是对原生控件的再次封装。QT4W只是定义了WebView的相关接口，并未给出具体实现。QT4X各端提供了部分WebView的实现，例如QT4C中提供IeWebView、ChromeWebView等实现。
目前QT4W支持的WebView有：WebView平台或操作系统说明相关实现代码IEWindowsIE浏览器和内嵌页面使用，支持IE 7～11由QT4C提供ChromeWindowsChrome浏览器和内嵌页面使用由QT4C提供TBSWindowsQQ浏览器和相关内嵌页面使用由QT4C提供CEFWindowsChromium内嵌页面使用由QT4C提供ChromeLinuxLinux下的Headless模式的Chrome浏览器使用由chrome-headless-browser提供AndroidBuildinAndroidAndroid系统内置浏览器和内嵌页面使用由QT4A提供X5AndroidQQ移动浏览器和X5内核内嵌页面使用由QT4A提供XWalkAndroidXWalk内核内嵌页面使用由AndroidWXMPLib提供iOSBuildiniOSiOS系统内置浏览器和内嵌页面使用由QT4i提供微信小程序&微信H5Android微信微信小程序或者微信H5使用由AndroidWXMPLib提供ChromeMacOSMac OS下的Chrome浏览器和内嵌页面使用由QT4Mac提供如需要扩展新的WebView类型，请参考WebView封装文档。WebDriverWebDriver是Web自动化中驱动层的封装，该模块主要用来处理DOM结构相关操作，例如查找web元素等，一般是浏览器内核相关。目前QT4W支持的WebDriver有：WebDriver说明相关实现代码IEIE内核使用由QT4W内置WebkitWebkit内核使用由QT4W内置如需要扩展新的WebDriver请参考WebDriver封装文档。WebControlWebControl模块定义WebElement以及WebPage的接口，并且给出了相关实现。此外，QT4W还封装了其他的常用Web元素，使用该模块来封装Web自动化时的页面。使用场景及安装QT4W可用于各个端上的Web应用或者Native应用内嵌Web页面的自动化，其不能独立使用以及需要结合其他Native层的自动化框架一起使用：Android端的使用及安装，请参考QT4A文档iOS端的使用及安装，请参考QT4i文档Windows端的使用及安装，请参考QT4C文档链接使用文档设计文档欢迎加入QQ群（432699528）交流使用和反馈