在华廷如何要等到回传完成 [英] In WatiN how to wait until postback is complete

查看:112
本文介绍了在华廷如何要等到回传完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在华廷我怎么能等到回传完成。

例如:

  //回传响应修改更新面板别处页
browser.Text(ID)的TypeText(ASD);//华廷不会等到回传结束(什么code,我应该把它替换?)。
browser.WaitUntilComplete();


解决方案

WaitUntilComplete不承认Ajax调用。看到这篇文章(上WaitForAsyncPostBackToComplete搜索)如何注入一些code,使这项工作还有:的华廷,Ajax和一些扩展方法

HTH,
吉荣

in WatiN how can I wait until postback is complete.

For example:

// 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 doesn't recognize ajax calls. See this article (search on WaitForAsyncPostBackToComplete) on how to inject some code to make that work as well: WatiN, Ajax and some Extension Methods

HTH, Jeroen

这篇关于在华廷如何要等到回传完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆