faaxm / spix

UI test automation library for QtQuick/QML Apps
MIT License
184 stars 47 forks source link

Add minimal Recording #112

Open 53845714nF opened 4 months ago

53845714nF commented 4 months ago

I know it is a bit bigger PR.

Recording:

I create a minimal Recording Feature, it creates a Python Script with the Click you make. You can start the recording with Crtl + R. With Alt and Mouse Click, it writes existsAndVisible to the Python Script. The Recording Stops with clicking Crtl + R again.

It is not perfect, but it caves a small Sample. Which can then be used for future work.

Path:

It also creates new features in the Path.

Properties:

I have added a feature where you can filter on Properties with the following Syntax (property=value) for example: (source=qrc:/menu/back.png)

Number/Index:

There is also a new feature in the Path where you can select the x element with a # for example: mainWindow/"Example Text"#2.