Selenium RC selenium-testrunner.js IEProxy 上的访问被拒绝错误 - 帮助?

发布于 2024-08-30 17:11:56 字数 1385 浏览 1 评论 0原文

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Timestamp: Wed, 28 Apr 2010 02:07:17 UTC


Message: Access is denied.

Line: 177
Char: 9
Code: 0
URI: http://www.google.com/selenium-server/core/scripts/selenium-testrunner.js

嗨,大家好, 我刚刚开始学习 selenium,在使用主要测试用例和使用 selenium IDE firefox 创建的测试套件进行测试时,我在使其在 Internet Explorer 中正常工作时遇到了一些问题。

这是我正在使用的 cmd 行:

java -jar "selenium-server.jar" -htmlSuite *iexploreproxy "http://www.google.com/" tests/OR_Discount_UAT_Suite.htm results.html -userExtensions user-extensions.js

我尝试使用 *iexplore 但不断收到会话 ID 过期错误,并尝试使用代理版本。

我现在可以看到测试运行程序,但不断收到访问被拒绝错误。 然后我使用 firefox 尝试相同的命令行:

java -jar "selenium-server.jar" -htmlSuite *firefox3 "http://www.google.com/" tests/OR_Discount_UAT_Suite.htm results.html -userExtensions user-extensions.js

仅供参考,我已经取消选中 IE8 中的自动检测代理设置。

我可以让一切完美运行。所以我不确定现在出了什么问题:( 有人可以帮忙吗?

谢谢!

更新:

我在 LAN 设置下看到这个代理,我认为它是由 selenium 设置的: file:///C:/DOCUME~1/Melaos_~1/LOCALS~1/Temp/customProfileDir985530/proxy.pac

内容为:

function FindProxyForURL(url, host) {
        return 'PROXY localhost:4444; DIRECT';
}
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Timestamp: Wed, 28 Apr 2010 02:07:17 UTC


Message: Access is denied.

Line: 177
Char: 9
Code: 0
URI: http://www.google.com/selenium-server/core/scripts/selenium-testrunner.js

Hi guys,
i'm just starting to learn up on selenium and while testing using mostly test cases and test suite creating using selenium IDE firefox, i'm having some problem getting it to work properly in internet explorer.

this is the cmd line that i'm using:

java -jar "selenium-server.jar" -htmlSuite *iexploreproxy "http://www.google.com/" tests/OR_Discount_UAT_Suite.htm results.html -userExtensions user-extensions.js

i try using the *iexplore but kept getting session id expired error and try with the proxy version instead.

i can now see the testrunner but keep getting the access denied error.
i then try the same cmd line using firefox:

java -jar "selenium-server.jar" -htmlSuite *firefox3 "http://www.google.com/" tests/OR_Discount_UAT_Suite.htm results.html -userExtensions user-extensions.js

FYI, i've already unchecked the auto detect proxy setting in IE8.

and i can get everything running perfectly. so im not sure what's the problem right now :(
anybody can help?

thanks!

Updates:

I'm seeing this proxy under LAN setting, i think it's set by selenium:
file:///C:/DOCUME~1/Melaos_~1/LOCALS~1/Temp/customProfileDir985530/proxy.pac

and the content is:

function FindProxyForURL(url, host) {
        return 'PROXY localhost:4444; DIRECT';
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦冥 2024-09-06 17:11:56

您是否考虑过更改本地 Intranet 区域的 JavaScript 权限?我敢打赌它在启动时就被阻止了。您可以通过创建一个包含 javascript/hello world 函数的 HTML 文件来进行测试。如果它在双击时执行,那么您在其他地方遇到了问题。通常,IE 会弹出一个信息栏,要求授予执行脚本的权限

Did you consider changing your local Intranet Zone permissions for JavaScript? I bet that it is being blocked upon startup. You could test by creating a HTML file with an included javascript/hello world function. If it executes upon doubleclick, then you have an issue somewhere else. Usually, IE will popup an info bar asking to give permissions to execute scripts

柠檬色的秋千 2024-09-06 17:11:56

我会仔细检查防火墙设置、ie8 安全设置(特别是对 javascript 没有太高的限制),并且主机文件没有混乱 localhost 指针的值。

I would double check firewall setting, ie8 security settings(especially so there are not to high restrictions on javascripts) and that the host files does not have values messing up localhost-pointer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文