【发布时间】:2010-12-03 19:24:45
【问题描述】:
我正在尝试运行硒测试。然而,每次我尝试运行应该运行 IE 的测试时,我都会在 htmlutils.js 的第 863 行收到一个错误,它说我应该禁用我的弹出窗口阻止程序。问题是我去了IE工具->打开弹出块。
所以它被禁用了,我得到了这个错误。
还有什么我需要禁用的。由于我使用的是 Windows 7 Pro 64 位版本,我实际上什至不知道它运行的是哪个版本的 Internet Explorer。因此,当我使用 IE 时,我使用的是 64 位版本,但如果网站或类似网站不支持 64 位,我会理解为 32 位。
所以我不确定我需要做什么才能让它工作。
这是它所在的行
function openSeparateApplicationWindow(url, suppressMozillaWarning) {
// resize the Selenium window itself
window.resizeTo(1200, 500);
window.moveTo(window.screenX, 0);
var appWindow = window.open(url + '?start=true', 'selenium_main_app_window');
if (appWindow == null) {
var errorMessage = "Couldn't open app window; is the pop-up blocker enabled?"
LOG.error(errorMessage);
throw new Error("Couldn't open app window; is the pop-up blocker enabled?");
}
这个 log.error 消息存储在哪里?也许我也可以发布。
【问题讨论】:
-
在 Selenium 支持论坛上提出这个问题可能会得到更好的结果。
-
您可以使用 -log 标志启动 selenium 服务器,这将为您提供更详细的问题输出:seleniumhq.org/docs/05_selenium_rc.html#selenium-server-logging
标签: windows windows-7 64-bit selenium