我正在使用WinAppDriver。效果很好,除了单击消息框中的“是\否”按钮。
Recorder UI提供了以下xpath:
“ / Pane [@ClassName =”#32354“] [@ name =”桌面1“] / Window [@ name =” TestCalc“] [@ AutomationId =” YesNoMessageBox“] / Button [@ name =”是“] [@ AutomationId =”是“]”
但是在我的c#项目中使用它时,它不起作用。我收到以下异常:
“使用给定的搜索参数无法在页面上找到元素”
可以请您帮忙吗?