嗨,我有一个用pywinauto打开的Gui,我想从窗口内的列表中的Item中选择,然后单击该列表,现在我可以使用此代码打开gui
for element in os.listdir(direction):
if element.endswith('Nasfla'):
path2=''.join((direction,'\\',element))
for exe in os.listdir(path2) :
if exe.endswith('flagui90.exe'):
path3=''.join((path2,'\\',exe))
app = Application()
#opining nasgro
app.start(path3)
#open second window
app.NASFLACrackGrowthAnalysis.Showcrackcaselibrary.click()
# try to select item from list but not working
app.CrackCaseLibrary.ThroughCracks.click