or
Pages.HttpLocalhostTestHtml.SubmissionTwoLink.Click(false);//HtmlFindExpression submission = new HtmlFindExpression("TextContent=Submission Two");//submission.Click(false); //HtmlAnchor sumission = new Find.ByExpression<HtmlAnchor>("TextContent=Submission Two");//HtmlAnchor submission = Find.ByExpression("TextContent=Submission Two");HtmlDiv e = Find.ByExpression<HtmlDiv>("id=ReadyToUse_Reports"); string SelectedReport = Convert.ToString(Data["B"].ToString()).Trim(); HtmlAnchor a = e.Find.ByContent<HtmlAnchor>(SelectedReport, FindContentType.InnerText); or HtmlAnchor a= e.Find.ByContent<HtmlAnchor>(SelectedReport, FindContentType.TextContent); Assert.IsNotNull(a); a.Click();Manager.DialogMonitor.AddDialog(
new AlertDialog(ActiveBrowser, DialogButton.OK));
Manager.DialogMonitor.Start();
What i would need help in :
an if statement which checks if the generic dialog has been fired and based on which logic branching can take place.
Thanks
Sen