Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Filter on Path (Text, Type and Property) #107

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

53845714nF
Copy link
Contributor

@53845714nF 53845714nF commented Mar 19, 2024

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.

@53845714nF 53845714nF mentioned this pull request Apr 17, 2024
@53845714nF 53845714nF force-pushed the add_text_type_finding branch from 477aa6b to d918a14 Compare April 26, 2024 10:28
@53845714nF 53845714nF changed the title Add finding text and type in the normal Path Better Filter on Path Apr 26, 2024
@53845714nF 53845714nF changed the title Better Filter on Path Better Filter on Path (Text, Type and Property) Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant