我想检查 IE 是否已经打开
If IE is opened so i.e. Goto("WWW.GOOGLE.COM");
else open new IE and goto Yahoo.com
例如:
br = new WatiN.Core.IE(@textBox1.Text);
然后,当我按下按钮时,我想检查 IE 是否打开并执行前面的场景。
最佳答案
用途:
IE.Exists(Find.ByUrl("Yahoo.com"));
在 WatiN 2.0 RC1 中,这将是:
Browser.Exists<IE>(Find.ByUrl("Yahoo.com"));
关于watin - 使用 WatiN 检查打开的浏览器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1935808/