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))
{
}