qtwebdriver icon indicating copy to clipboard operation
qtwebdriver copied to clipboard

Custom native application registration example

Open hekra01 opened this issue 8 years ago • 4 comments

Add example how to add qt's calculator app. This:

  • includes the calculator app in the build system
  • Register Calculator with QtWebdriver

Following this, Selenium can request QtWebDriver to open the Qt application like this:

driver.get("qtwidget://MyWidgetClass");

hekra01 avatar Jan 14 '17 23:01 hekra01

Hi, Can you also provide examples for QApplication using QQmlApplicationEngine + QML? Thank you

pohnee avatar Jan 18 '17 04:01 pohnee

@pohnee Indeed, there is no support for QQmlApplicationEngine a this time. Maybe for a future release

hekra01 avatar Jan 19 '17 13:01 hekra01

Noted. Thank you

pohnee avatar Jan 20 '17 01:01 pohnee

Preliminary work to support QQmlApplicationEngine in this PR: https://github.com/cisco-open-source/qtwebdriver/pull/28, branch https://github.com/cisco-open-source/qtwebdriver/tree/WIP_QQuickWindow More testing needed, but first test seem ok. @pohnee, If you want you can try this branch. Example of WebDriver with QQmlApplicationEngine here: https://github.com/cisco-open-source/qtdeclarative/pull/1

hekra01 avatar Jan 20 '17 18:01 hekra01