from pywinauto import application
app = application.Application.start("notepad.exe")
import time
time.sleep(2)
app.notepad.TypeKeys("abc")
app.Notepad.MenuSelect(u"文件(&F)->另存为(&A)")
time.sleep(2)
ie = app.window_(title_re = u"另存为")
ie.ComboBox2.TypeKeys('abc')
ie.ComboBox3.Select(1)
ie.ComboBox4.Select(2)
##ie.Button2.Click()
pywinauto测试
最新推荐文章于 2022-05-22 13:01:34 发布