Hi, I have a problem with hyperlink which save and close pop up window.
Below is the code:
When I use the above code, data in the pop up window fills in just ok, pop up closes, but when I open this pop up window one more time, the data is null (in the id "name").
On the other hand after I delete those lines:
everything is just fine but I get an exception:
Have You any sugestions ?
Below is the code:
Manager aaa = new Manager(false);aaa.Start();if (aaa.Browsers.Count == 0){ aaa.LaunchNewBrowser(BrowserType.InternetExplorer);}aaa.ActiveBrowser.NavigateTo(TextBox1.Text);aaa.SetNewBrowserTracking(true);// link wchich open pop upaaa.ActiveBrowser.Actions.Click(aaa.ActiveBrowser.Find.ById("newQuestion"));aaa.WaitForNewBrowserConnect(aaa.Browsers[aaa.Browsers.Count - 1].Url, true, 6000);aaa.ActiveBrowser.WaitUntilReady();aaa.ActiveBrowser.RefreshDomTree();//update value in the pop upaaa.ActiveBrowser.Actions.SetText(aaa.ActiveBrowser.Find.ById("name"), "nazwa testowa");aaa.ActiveBrowser.PrepareFrameForClosing(); aaa.ActiveBrowser.AutoDomRefresh = false;aaa.ActiveBrowser.AutoWaitUntilReady = false;//link wchich save data int the pop up and close pop upaaa.ActiveBrowser.Actions.Click(aaa.ActiveBrowser.Find.ById("save"));aaa.Browsers[aaa.Browsers.Count - 1].Close();When I use the above code, data in the pop up window fills in just ok, pop up closes, but when I open this pop up window one more time, the data is null (in the id "name").
On the other hand after I delete those lines:
aaa.ActiveBrowser.AutoDomRefresh = false;aaa.ActiveBrowser.AutoWaitUntilReady = false;everything is just fine but I get an exception:
Wait for condition has timed out[TimeoutException: Wait for condition has timed out] ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo) +115 ArtOfTest.Common.WaitSync.For(Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout) +110 ArtOfTest.WebAii.Core.Browser.WaitUntilReady() +149 ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady) +38 ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request) +25 ArtOfTest.WebAii.Core.Actions.Click(Element targetElement) +89 WebApplicationRealTelerikTest.str1.Button17_Click(Object sender, EventArgs e) in C:\Users\jbarteczek\Desktop\testyAutomat\oceny\WebApplicationRealTelerikTest\index.aspx.cs:1824 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563Have You any sugestions ?