我能够在父窗口上执行按钮单击,但是不确定如何在子窗口的按钮上执行单击操作。
app = Application().connect(path=newPath)
app.name_of_the_parent_window.draw_outline()
app.name_of_the_parent_window.print_control_identifiers()
app.name_of_the_parent_window.Button6.click() #this click will open a new window with yes & no buttons.I would like to click on yes button but I am unable to do that
print(app.windows()[0].children(title_re=".*would you like to reset.*",class_name="Button")) #this prints the information about buttons
image of the result of the above print command
我可以看到“是”是一个按钮。但我不知道在按钮yes上执行click()的方法
我尝试了以下命令,但失败并显示错误消息 error mesage image
请让我知道如何在子窗口的按钮上执行点击操作。