0
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?

1
  • I was facing the same problem becuase I was using *iexploreproxy instead of *iexplore when initiating the selenium object. Commented Sep 12, 2011 at 14:31

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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.

1 Comment

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.