gpt4 book ai didi

asp.net - 在WatiN中如何等待回发完成

转载 作者:行者123 更新时间:2023-12-04 13:15:20 25 4
gpt4 key购买 nike

在 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();

最佳答案

您可以检查 IE 是否忙而不是完成。

while (((SHDocVw.InternetExplorerClass)(_ie.InternetExplorer)).Busy)
{
System.Threading.Thread.Sleep(2000);
}

关于asp.net - 在WatiN中如何等待回发完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1979610/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com