【发布时间】:2008-09-19 02:44:34
【问题描述】:
我们正在针对我们现有的代码库运行 Selenium 回归测试,并且我们的网络应用程序中的某些屏幕使用弹出窗口来执行中间步骤。
目前我们在测试中使用的命令:
// force new window to open at this point - so we can select it later
selenium().getEval("this.browserbot.getCurrentWindow().open('', 'enquiryPopup')");
selenium().click("//input[@value='Submit']");
selenium().waitForPopUp("enquiryPopup", getWaitTime());
selenium().selectWindow("enquiryPopup");
...大部分时间都有效。有时测试会在waitForPopUp() 行失败,并带有
com.thoughtworks.selenium.SeleniumException: Permission denied
谁能推荐一个更好、更可靠的方法?
此外,我们主要在 IE6 和 7 上运行这些测试。
【问题讨论】:
-
这个线程到底是什么鬼?下面有 5 个不同的人试图劫持它!
标签: internet-explorer selenium popup regression-testing