Take the 2-minute tour ×

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?

share|improve this question
I was facing the same problem becuase I was using *iexploreproxy instead of *iexplore when initiating the selenium object. –  user940778 Sep 12 '11 at 14:31
add comment

2 Answers

up vote 1 down vote accepted

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.

share|improve this answer
add comment

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.

share|improve this answer
The problem there is that sometimes 1 second isn't enough, and sometimes it's too much. The former will cause false negatives, and the latter will cause your tests to take longer than they need to. –  Dave Hunt Dec 9 '09 at 18:01
add comment

Your Answer


