Skip to content

Releases: cisco-open-source/qtwebdriver

WebDriver-cisco-cmt-1.3.3

29 Jan 01:18
Compare
Choose a tag to compare
  • Dockerize QtWebDriver:
  • Document how to use QtWebDriver in headless mode here
  • Add support for applications using QQmlApplicationEngine:
  • Refactor samples
  • Fix build issues on Qt5.6/5.7

WebDriver-cisco-cmt-1.3.2

12 Sep 16:42
Compare
Choose a tag to compare
  • Add build option to configure handling of repeast key:
    • if WD_CONFIG_ONE_KEYRELEASE : 1 then only the last key release of the repeat will be sent
    • if WD_CONFIG_ONE_KEYRELEASE : 0 then one key release is sent fo revery event of the repeat
$ cat wd.gypi
{
'variables': {
    'QT5': '1', # change to '0' to disable Qt5
    'WD_CONFIG_QWIDGET_BASE': '1', # 1 to support widget or hybrid web
    'WD_CONFIG_WEBKIT': '1', #1 to support Web views
    'WD_CONFIG_QUICK': '1', #1 to support QML
    'WD_BUILD_MONGOOSE': '1', #1 to inline mongoose code in WebDriver libraries. Leave as is.
    'WD_CONFIG_PLAYER': '0', #For Qt5 only. If the Qt build includes QtMultimedia, then setting this field to 1 will enable to driving QMediaPlayer. See https://github.com/cisco-open-source/qtwebdriver/wiki/Media-Commands
    'WD_CONFIG_ONE_KEYRELEASE': '0', # Set to 0 (default). On long key press WD will send as many key release as key press. If set to 1 only the final key release is sent
    'QT_INC_PATH': '/home/user/Qt/5.2.0/gcc_64/include',
    'QT_BIN_PATH': '/home/user/Qt/5.2.0/gcc_64/bin',
    'QT_LIB_PATH': '/home/user/Qt/5.2.0/gcc_64/lib'
 },
}
  • refactor test samples for readability

WebDriver-cisco-cmt-1.3.1

19 Jun 22:23
Compare
Choose a tag to compare

Features

  • Javascript expressions can locate QML elements by objectName: #6

    Use ObjectNameUtils.findChild() in Javascript expression to access qml elements by objectName.
    e.g: With this qml

    Rectangle {
        id: rect
        objectName: "rect"
    
        Text {
            id: button
            objectName: "button"
            text: "Home"
        }
    }
    

    This test will work:

    bText = webdriver.execute_script("var v = ObjectNameUtils.findChild('button'); return v.text;")
    assert 'Home' in bText
  • Manage key auto repeat: #9

    When processing:

    • /session/:sessionId/keys
    • /session/:sessionId/element/:id/value

    For each sequence of similar keys in the value, WD will generate QKeyEvents with the isAutoRepeatthe next events

    • first KeyPress event isAutoRepeat = false
    • last KeyRelease event isAutoRepeat = false
    • all intermediary events isAutoRepeat = true
    • E.G:
      This python test code elem.send_keys(Keys.UP + Keys.UP)will generate
      • Event 1: type = press, code = UP, isAutoRepeat = false
      • Event 2: type = release, code = UP, isAutoRepeat = true
      • Event 3: type = press, code = UP, isAutoRepeat = true
      • Event 4: type = release, code = UP, isAutoRepeat = false

Fixes:

  • Distinguish Keys.ENTER and Keys.RETURN: #5
  • GetAttribute should return strings for native view: #8
  • Fix translation of umapped selenium keycodes: #11

WebDriver-cisco-cmt-1.3.0

26 Feb 20:06
Compare
Choose a tag to compare

Added performance log

WebDriver-cisco-cmt-1.2.3

31 Oct 20:38
Compare
Choose a tag to compare

Add Webdriver support of a new Selenium capability to:

  • quit previous session without closing windows
  • reuse the windows the previous session for rendering.
    See Custom Capabilities

WebDriver-cisco-cmt-1.2.2

11 Nov 20:29
Compare
Choose a tag to compare
  • Port WebDriver to Qt 5.2
  • Add support for Session timeouts
  • Updated atoms for selenium-2.39.0
  • FIX: Resources not released in QuickView tests
  • FIX: "about:blank" URLs not supported
  • FIX: Screenshots of elements styled with CSS "display:none" are corrupt
  • FIX: mongoose incorrectly handles keep-alive

WebDriver-cisco-cmt-1.2.1

11 Nov 20:31
Compare
Choose a tag to compare
  • Add element screenshot command. See Element Screenshot
  • Modify Android apk to use Ministro
  • Add support for QMenus/QAction in locator strategies
  • Add webserver-cfg command line option for web server configuration. See Command line options
  • Android, Mac, Desktop binaries in Artifactory
  • FIX: Drag & drop for QWidgets and QML
  • FIX: Contextual menu position on right click
  • FIX: Fix incorrect processing of windowsize capability
    See Custom Capabilities

WebDriver-cisco-cmt-1.2.0

11 Nov 20:39
Compare
Choose a tag to compare
  • Add Webdriver command whitelist feature: See Command White List
  • Add multitouch support: See Mobile Devices Commands
  • Add QGraphicsWebView support.
  • FIX: Add speed command for Quick2
  • FIX: Ensure id and objectName consistency for XPath lookup in QML
  • FIX: Handle all content types during widget/web transition issue
  • FIX: Terminate session if all windows closed

WebDriver-cisco-cmt-1.1.0

11 Nov 20:59
Compare
Choose a tag to compare

QML support:

  • QtQuick1 support
  • QtQuick2 support
  • Touch command support for QtQuick2
  • FIX: Losing focus in Quick2 view when window is inactive
  • See doc here: Hybridity

Remote Control Events:

  • add VNC authentication
  • WebDriver key dispatcher based on linux UInput
  • See doc here: User Input Forwarding

New Commands:

  • Media Playback commands: see Media
  • Orientation commands support

WebDriver-cisco-cmt-1.0.0

11 Nov 20:55
Compare
Choose a tag to compare
  • Add WebDriver support for native Qt widgets. See Hybridity
  • Provide QtWebDriver for Android & Mac
  • Add WebDriver APIs for server lifecycle, custom commands
  • Add WebDriver support for session required capabilities. See Custom Capabilities
  • Enable input forwarding. See User Input