Selenium RC selenium-testrunner.js IEProxy 上的访问被拒绝错误 - 帮助?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否考虑过更改本地 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
我会仔细检查防火墙设置、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.