⬆️ ⬇️

Win32 GUI Automation with pywinauto

By the nature of my previous work (QA), I had to get acquainted with the wonderful language of Python and, in particular, with the automation module pywinauto. PyWinAuto is wonderful for automating the testing of gui applications and just automating routine gui processes.

This post will tell and show how to use the pywinauto module to automate gui operations.

go deeper



But first things first.



Goals

There are a lot of test automation tools, some paid ones, others are not very =)

But the campaign policy did not allow pirate this software, and did not rush to buy, so I looked in the direction of the python.

')

Facilities

Naturally, there is more than one module for automating win32 Gui, but I liked pywinauto most of all with its pythonic (compared to other modules) structure. You can touch the alternative modules of the soon-to-google win32 gui automation python



So, the main source of information about this module is the official page of the module on which the module ’s help is concentrated.



Usage example

To add clarity, I will give an example of use:

After installing the pywinauto module (installation instructions on the module page), you can immediately experiment!



It makes no sense to copy here examples from the howto of the page of the module, so I’ll just confine myself to a screencast that shows the use of this module in its simplest application.

Video here



Shl

I hope this kind of automation gui will be useful to you in the difficult task of automating routine tasks and saving time, read howto and getting started, and the forum supported by the developers will also be of great help.

Good luck!

Source: https://habr.com/ru/post/37153/



All Articles