1

I found How to fix “Permission denied to access property 'document'”? and How to fix “Permission denied to access property 'document'”? but none of those help directly as I don't know where to stick the *chrome they all talk about. Supposedly this should launch Firefox with a special profile with elevated security privileges, to bypass Javascript security errors. Why do I need this? Well, I am trying to understand when all (or selected) IFRAMEs load completely just like this. But due to security I cannot access the document of an IFRAME. So I want to use Firefox with special privileges to overcome the imposed security limitations.

So with the simple code as below, where and how do I apply *chrome thing?

var firefoxProfile = new FirefoxProfile();

// Do something with profile...

using (var driver = new FirefoxDriver(firefoxProfile))
{
}
Community
  • 1
  • 1
wpfwannabe
  • 14,587
  • 16
  • 78
  • 129
  • So when are you seeing this error? Where is it thrown? (What line?) Does Firefox open? – Arran Dec 05 '14 at 15:01
  • I have edited the question to include more context. Basically, I am trying to access IFRAME's document and I can't. So I am looking for ways to overcome this. To answer your question more directly, I get exception when I try to execute JavaScript within the context of an IFRAME. – wpfwannabe Dec 05 '14 at 16:04
  • You're confusing Selenium RC (`*chrome`) with Selenium WebDriver. Trying to chase down "where... to apply the `*chrome` thing" is a red herring. – JimEvans Dec 05 '14 at 18:17
  • I am new to all this so you probably have a point in the *confusing* part. Still, looks related and I was hoping to get a positive response. Are you saying it's impossible? – wpfwannabe Dec 05 '14 at 18:54

0 Answers0