asp.net – 在WatiN中如何等到回发完成

前端之家收集整理的这篇文章主要介绍了asp.net – 在WatiN中如何等到回发完成前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在WatiN我怎么能等到回发完成.

例如:

// Postback response modifies update panel elsewhere on page
browser.Text("id").TypeText("asd"); 

// WatiN doesn't wait until postback is completed (what code should I replace it with?).
browser.WaitUntilComplete();

解决方法

WaitUntilComplete无法识别ajax调用.请参阅此文章(搜索WaitForAsyncPostBackToComplete),了解如何注入一些代码以使其工作: WatiN,Ajax and some Extension Methods

HTH,吉荣

原文链接:https://www.f2er.com/aspnet/247081.html

猜你在找的asp.Net相关文章