错误问题:有意外的确认!
我正在尝试从表中删除用户。起初,我收到超时错误,但使用了 BeatnicClick(),如下所述:
这解决了超时错误,但我仍然收到意外的确认错误。这是部分源代码:
selenium.Click("ctl00_btnAddressBook"); selenium.WaitForPageToLoad("30000");
// selenium.BeatnicClick("ctl00_page_content_ExistingEmployees_ctl03_btnDeleteEmployee");
String 您确定要删除吗 所选项目? = selenium.GetConfirmation();
任何帮助将不胜感激。提前致谢。
I am trying to delete a user from a table. At first I was getting a timeout error but used the BeatnicClick() as described here:
That solved the timeout error but I'm still getting the unexpected confirmation error. Here's part of the source code:
selenium.Click("ctl00_btnAddressBook");
selenium.WaitForPageToLoad("30000");// selenium.BeatnicClick("ctl00_page_content_ExistingEmployees_ctl03_btnDeleteEmployee");
String Are you sure you want to delete
the selected item? =
selenium.GetConfirmation();
Any help would be appreciated. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要处理确认,您的代码应该如下所示
这应该单击删除元素,然后获取确认,如果您想要它可以断言其正确的消息
To handle the confirmation your code should look like
This should click on the delete element and then get the confirm and if you want it can assert its the correct message