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();