or
Hello.
I have html code:
<input id="j_idt9:revertBtn" class="button-primary" type="submit" value="Revert" onclick="jsf.util.chain(this,event,"if(!confirm('Do you really want to revert these changes?'))return false;","RichFaces.ajax(\"j_idt9:revertBtn\",event,{\"incId\":\"1\"} )");return false;" name="j_idt9:revertBtn" disabled="">
Manager.DialogMonitor.AddDialog(AlertDialog.CreateAlertDialog(ActiveBrowser, DialogButton.OK)); Manager.DialogMonitor.Start(); Find.ById<HtmlInputSubmit>("j_idt9:revertBtn").Click();
In initialization phase i have:
Settings settings = GetSettings();
settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle; Initialize(settings);pop-up has Ok and Cancel buttons.
but when i execute test, pop-up appeared and then nothing happened.
Hm.. I noticed that pop-up "blinking" with this code.
PS. i try this link but have same issue.
PS2. I execute on IE9 and FF14.0.1 Win7 x64 but project compiled in x86
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 undefinedBrowserCommand (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