Intermittent 'permission denied' error on checking of contentDocument property of frames
Hi there. I encounter an intermittent issue while trying to check contentDocument property of Frame object of a web page. Test runs in IE 11.
Here's the piece of code
....
this.page.WaitFrame("list",Project.Variables.WAIT_TIME);
while(this.page.Frame("list").contentDocument.readyState != "complete")
{
Delay(Project.Variables.WAIT_TIME/2,"Loading list...");
};
....
Some frames are filled with child elements and the idea behind of that Delay inside the loop is to wait for entire frame fully loaded before going further.
From time to time I get 'permission denied' error in the test log that points to that 'while' statement. I assume it is related to access to contentDocument property. The issue is intermittent but it happens only for Frame object. I never got it for Page object.
I would appreciate if anyone has any idea how to get rid of it. Or maybe someone had encountered the same issue and could fix it.
Thanks.