???????????????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?????????????????????????????????????????