beuaaa / pywinauto_recorder

A record-replay tool to automate GUI via pywinauto
https://pywinauto-recorder.readthedocs.io/
MIT License
131 stars 24 forks source link

Possibility to use * to define element paths #17

Closed beuaaa closed 3 years ago

beuaaa commented 3 years ago

windowName||windowType->*->||->name||->||type

The second item of the path is an *: it represents an undefined number of items The third item is ||: it represents one element with undefined name and undefined type The fourth item is name||: it represents an element with the name 'name' and with an undefined type The firth item is ||type: it represents an element with an undefined name and with type 'type'

beuaaa commented 2 years ago

Pywinauto recorder 0.5.0 had a limited implementation for checking asterisks in a path. In fact, the code only checked nodes between the wildcard and the end of the path. In Pywinauto recorder 0.6.0 wildcards can be placed freely in any position of the path.