pywinauto ???????????
???????????? ???????[ 2012/12/11 11:49:53 ] ????????
???????????????app[u‘????? – ???±?’][‘Edit’].Click()??????Pywinauto?????????????
???????app = application.Application() ????????app.start_()?????app.connect_()??????á???????2???????criteria???????[{‘process’ = 4320L?? ‘ best_match’ = ‘????? - ???±?’}]?????WindowSpecification._resolve_control( ) -> findwindows.py ????????????????process (????class name?? control_id??)???handle????????????DialogWrapper????????????????±????????????pywinauto?????best_match??????????Unique_dict??????????????????д???????????????????????????
????????????????????Edit???????????EditWrapper????????????е?Click?????? ?????????????????? handleprops.py???????????? windows api????????
???????????
???????
????a. ????????windows???????????????????????
????b. ???title??????title??class name?????????????????????????????????
????c. ????????????????????????????title????С??????????????
????d. ????????????Python???????????????????????pywinauto????????????pywinauto?????????????????????
???????????
????a. ???windows??????????????????????????????У????????????????????????C???????python?????????????pywinauto??
????b. ????????????????????????????e.g. ??????time.sleep()???????????
????c. pywinauto?????????????????????????????????????????????????????
????d. ?????????????????????????????????????????ж????????????????????
??????Pywinauto?????
??????????????У???Pywinauto?????????????????????棺
????????????????????
??????????HiUILib??????????win32_controls?м???VConWrpper?????????????????????????????????????????????????????????λ?????????????????????
??????????ò?????????
????????е?????У???????????Щ??????????????????????У??????????????????application??hwndWrapper??????У????????????win32api??????????á??????????????????????
????case???
???????????Python??unittest?????????????????????case??????????????飬???????????unittest.TestCase???????????????????????????????????е????????????case?????д????д?????????У????????????setUp()??tearDown()?????????????????????????????????Unittest??TestSuite???????????????????е????????????????????TextTestRunner????????TestSuite?????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11