-
Notifications
You must be signed in to change notification settings - Fork 59
QML Specifics
hekra01 edited this page Jun 17, 2015
·
6 revisions
-
Javascript expressions can locate QML elements by objectName: https://github.com/cisco-open-source/qtwebdriver/issues/6
Use
ObjectNameUtils.findChild()
in Javascript expression to access qml elements by objectName. e.g: With this qmlRectangle { 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
Home | Build And Run | Releases | Features
Copyright © 1992-2016 Cisco and/or its affiliates