SeleniumException:错误:命令执行失败。没有权限
SeleniumException: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: Permission denied.
虽然我的测试在 Firefox 和 IE 中以调试模式运行时运行良好,但在 IE 中以运行模式运行时,它会失败并显示上述错误消息。 selenium.waitForPageToLoad("20000");似乎不是一个解决方案。
还有其他想法吗?
SeleniumException: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: Permission denied.
Although my test runs perfectly in Firefox and also in IE when running in Debug mode, in IE in Run mode it fails with the error message above. selenium.waitForPageToLoad("20000"); doesn't seem to be a solution.
Any other ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
哪个命令因权限被拒绝而失败?可能是在尝试访问尚不存在的东西时。我建议在尝试与其交互之前使用 waitForCondition 命令来确保目标元素存在/可见。
What command is failing with the Permission Denied? It may be when trying to access something that doesn't exist yet. I would recommend using the
waitForCondition
command to ensure the target element is present/visible before attempting to interact with it.我使用 Thread.currentThread().sleep(1000);在需要时间重新加载部分页面的操作之后。它似乎有效,但并非在所有情况下都有效。
I used Thread.currentThread().sleep(1000); after the action that requires time to reload parts of the page. It seems to work, but not in all of the cases.