spix
spix copied to clipboard
Better Filter on Path (Text, Type and Property)
I added the option in Path to use #
for finding types of a Qml Object.
Finding Text with "yout text"
. And a filter for looking at Properties (source=qrc:/menu/back.png)
.
Example in Python:
from xmlrpc.client import ServerProxy
# Connect to the application
session = ServerProxy('http://192.168.178.142:9000')
# Looking for Type
session.existsAndVisible('mainWindow/#Rectangle')
# Looking for Text
session.existsAndVisible('mainWindow/"Click Me"')
This can then be used in all spix functions.
For the Property Filter, I use ()
so select them. They also must have a =
to look what is the Value and what is the Property.
session.mouseClick('mainWindow/(source=qrc:/menu/back.png)')
It is very cool when you use this on a back arrow Button.