Hello,
Looks like Chrome plugin issue introduced in 2012.2.920.
I use next code to find an iFrame because ActiveBrowser.Frames collection does not show it:
This code used to work with all browsers in 2012.1 719.
Now it throws an exception in both Chrome 21 and latest Chrome 22:
Could you please recommend any workaround?
Below is iFrame I am searching for:
Looks like Chrome plugin issue introduced in 2012.2.920.
I use next code to find an iFrame because ActiveBrowser.Frames collection does not show it:
var frameInfo =
new
FrameInfo(
"overlayWindow"
,
""
,
null
,
null
, 1,
false
,
false
);
var window =
this
.ActiveBrowser.WaitForFrame(frameInfo, 10000);
This code used to work with all browsers in 2012.1 719.
Now it throws an exception in both Chrome 21 and latest Chrome 22:
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)
Could you please recommend any workaround?
Below is iFrame I am searching for:
<
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
>