var frameInfo =
new
FrameInfo(
"overlayWindow"
,
""
,
null
,
null
, 1,
false
,
false
);
var window =
this
.ActiveBrowser.WaitForFrame(frameInfo, 10000);
Exception thrown during the wait
for
a condition. Error: Unexpected error
while
waiting on condition. Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError
set
by the client. Client Error:
Cannot read property
'defaultView'
of undefined
BrowserCommand (Type:
'Information'
,Info:
'DocumentMarkup'
,Action:
'NotSet'
,Target:
'null'
,Data:
''
,ClientId:
'32afb365-7c7d-4f20-a65e-3da0f319c96f'
,HasFrames:
'True'
,FramesInfo:
''
,TargetFrameIndex:
'-1'
,InError:
'True'
,Response:
'Cannot read property '
defaultView
' of undefined'
)
InnerException: none.
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
at ArtOfTest.WebAii.Core.Browser.<WaitForFrame>b__3(Browser br, FrameInfo fr)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Delegate.DynamicInvoke(Object[] args)
at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)
<
iframe
id
=
"overlayWindow"
src
=
"/site/shell/Controls/Rich Text Editor/EditorWindow.aspx"
style
=
"position: absolute; width: 100%; height: 100%; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 999; border: none; "
frameborder
=
"0"
allowtransparency
=
"allowtransparency"
></
iframe
>
Steps:
Problem:
Thanks
satyam
Using the Brower.NavigateTo() method causes a memory leak in IE9.
We have a test which tries to access each of the urls in our web application looking for broken links. We found that this test was consuming all the memory on the machine until it died.
Here is some code that reproduces the problem:
var webAiiSettings = new Settings();
webAiiSettings.ClientReadyTimeout = 120000;
webAiiSettings.AnnotateExecution = true;
webAiiSettings.Web.RecycleBrowser = true;
webAiiSettings.Web.DefaultBrowser = BrowserType.InternetExplorer;
var WebAiiManager = new Manager(webAiiSettings);
WebAiiManager.Start();
WebAiiManager.LaunchNewBrowser(ProcessWindowStyle.Maximized);
var WebAiiBrowser = WebAiiManager.Browsers[0];
for (int i = 0; i < 100; i++)
{
WebAiiBrowser.NavigateTo("http://www.telerik.com");
}
WebAiiBrowser.Close();
Watch the memory of the IE9 browser climb each time it navigates to the website. This does not happen in IE8. Likewise, if I go to IE9 and keep manually hitting the website, the memory doesn't leak.
Thank you
PS. This is running on a Windows 2008 R2 machine. I don't know if the problem exists on other platforms.