WatiN,IE 实例并通过它们的 hWnd 值获取它们
我目前正在使用 WatiN 来自动化工作中的专有网站,并且遇到了能够通过其 hWnd 值获取 IE 会话的问题。
在撰写本文时,我可以启动 IE,处理发生的弹出窗口(该网站使用 JavaScript 动态生成某些内容),但一旦我完成与弹出窗口的交互,就无法返回到主 IE(第一个)窗口。向上。
想法?
I am currently using WatiN to automate a proprietary website at my work, and am running into an issue with being able to grab an IE session by its hWnd value.
As of this writing, I can start IE, handle the pop-up that occurs (the site uses JavaScript to generate certain things dynamically), but cannot return to the main IE (the first) window once I have finished interacting with the pop-up.
Thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我之前遇到过这个问题,因为我在回发之间使用局部变量来存储对元素的引用。
不要这样做
这样做
I have had trouble with this before and its because i was using local variables between postbacks to store the references to the elements.
don't do this
do this