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

Is there any way to use [xpath] string with app.window.window ? #1022

Closed
Heidernlee opened this issue Dec 10, 2020 · 2 comments
Closed

Is there any way to use [xpath] string with app.window.window ? #1022

Heidernlee opened this issue Dec 10, 2020 · 2 comments

Comments

@Heidernlee
Copy link

It's very easier to get [xpath] string by using [WinAppDriver UIRecorder] than spy++ or other Tools ,
So I decided to [Run Apps]=>[get xpath string using UIRecorder]=>[write auto-run script using pywinauto]
but app.by_xpath() is not released yet, am I right ?

So is there any way to use [xpath] string now? like:
xpath string : "//Window[@name='DF']/MenuBar[@name='Application'][@AutomationId='MenuBar']/MenuItem[@name='Option']"
pywinauto :
app.window(name='DF').child_window(name='Application').child_window(name='Option') ?

@vasily-v-ryabov
Copy link
Contributor

Duplicate of #896. It's planned for next year. Also we don't plan to integrate with Microsoft's UI Recorder. We're planning to implement our own recorder (prototype is here: #701).

@Heidernlee
Copy link
Author

@vasily-v-ryabov
Thanks for your response. UIRecorder is a good tool for recording XPath of Elements,
but it cannot record Window-Handlers while Hide+Show Windows.
Hope you guys could do it better. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants