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 但不断收到 session id expired 错误并尝试使用代理版本。
我现在可以看到 testrunner 但不断收到拒绝访问错误。然后我使用 firefox 尝试相同的 cmd 行:
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';
}