在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,吉荣