or
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();aaa.ActiveBrowser.AutoDomRefresh = false;aaa.ActiveBrowser.AutoWaitUntilReady = false;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) +5563<input type="checkbox" disabled="disabled" name="assessmentForm:metCompletedPassedCourse" id="assessmentForm:metCompletedPassedCourse"/>var checkBox = Manager.ActiveBrowser.Find.AllByAttributes<HtmlInputCheckBox>("type=checkbox");Assert.True(checkBox.All(item => item.Attributes.Contains( ?[TestMethod][Dialog(new ConfirmDialog(Manager.Current.ActiveBrowser, DialogButton.OK))]public void TestCase(){ // This gives me an error. "An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type}