cisco-open-source / qtwebdriver

WebDriver implementation for Qt
https://github.com/cisco-open-source/qtwebdriver/wiki
197 stars 59 forks source link

Custom native application registration example #27

Open hekra01 opened 7 years ago

hekra01 commented 7 years ago

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

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

driver.get("qtwidget://MyWidgetClass");
pohnee commented 7 years ago

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

hekra01 commented 7 years ago

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

pohnee commented 7 years ago

Noted. Thank you

hekra01 commented 7 years ago

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