-
Notifications
You must be signed in to change notification settings - Fork 671
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
Attribute resolution #120
Comments
It's hard to give a concrete tips without knowing your GUI layout. Generally, I'd suggest you to stick to "Dialog.control" model and break it on several small basic steps. Something as following:
Not sure if it applicable for your case but notice that .Net applications currently are only partially supported by Pywinauto. |
app.dlg.TabControl.Select("tab name")
app.dlg.Purge.Click() This is much shorter than following a lot of tabs. Some debugging tricks can be useful:
|
These tips and tricks can be moved to the documentation. So marking the issue as enhancement. |
This is explained in new Getting Started Guide. |
In reference to documentation: http://pywinauto.github.io/docs/dev_notes.html#attribute-resolution, it say: app.dlg.control
what is the best way to acces to button "Purge": w_customer.tabfolder_customer.tabpage_invoices.tabfolder_years.tabpage_2015.Purge.Click() ?
app.w_customer.Purge.Click() # Exists tabpage_2014, tabpage_2013, ...
or
app.w_customer['tabfolder_customer'].['tabpage_invoices'].['tabfolder_years'].['tabpage_2015'].['Purge'].Click()
The text was updated successfully, but these errors were encountered: