pywinauto: Windows desktop application automation testing (1)

1. Why do I use the pywinauto module

1. Because of the problems I encountered with the previous scheme, I had to change the scheme

Appium: Windows System Desktop Application Automation Test (2)_Lion King's Blog-CSDN Blog 1. The problem of not getting the operation handle 1. The following figure shows different applications connected through python scripts 2. Application 1: There is a sessionId, indicating that the session is normal , you can operate the application through the handle 3. Application 2: Report 500 error https://blog.csdn.net/weixin_43431593/article/details/124299851 2. Because Dachang is also implementing based on pywinauto

 3. Compared with some development modules, pywinauto is relatively rich in functions

Windows desktop application UI automation tool (reproduced)_Duan Xiaowangye's blog-CSDN blog_Desktop application automation original address: windows desktop application UI automation tool-anobscureretreat-blog Park Recently, I am researching automation tools for windows desktop applications. I found relevant information on the Internet, and there are many UI automation tools, but there are few tools that want to support windows desktop applications, web and APP segments at the same time. The following is a summary of some tools: pyautoguiPyautogui for mouse movement, click, drag, keyboard Key input, press and hold operations, and simultaneous press and hold of mouse + keyboard hotkeys and other operations can be accurately simulated. It can be said that any hand can be moved, and it is simple and convenient. But because the positioning of the control depends on the image matching, .. https://blog.csdn.net/weixin_46361114/article/details/121150771

2. How to get started with pywinauto

 1. Check the official documents

(1) English

What is pywinauto — pywinauto 0.6.8 documentationhttps://pywinauto.readthedocs.io/en/latest/index.html(2)中文

What is Pywinauto Pywinauto Chinese Documentation Kanyun http://pywinauto.github.io/ https://www.kancloud.cn/gnefnuy/pywinauto_doc/1193035 2. With the script recording function of Airtest

7. How to test Windows applications - Airtest Project Docs Airtest Project Docs https://airtest.doc.io.netease.com/tutorial/7_Windows_automated_testing/

3. Having said so much, why not use Airtest directly?

1. This is a great idea! This is to support domestic Appium!

Guess you like

Origin blog.csdn.net/weixin_43431593/article/details/124378355