HtmlTableRow containerRow =
null;
foreach
(HtmlTableRow r in Pages.EndpointClinicalPulse.LandingPageTable.AllRows)
{
foreach(HtmlTableCell c in r.Cells)
{
Log.WriteLine(
"Cell Found.TextContent:"+c.InnerText);
if(c.InnerText.Equals("Messaging_Test_Study"))
{
containerRow = c.Parent<HtmlTableRow>();
}
}
}
HtmlTableCell cbutton = containerRow.Cells[
6];
Log.WriteLine(cbutton.InnerText);
cbutton.ScrollToVisible();
cbutton.Click();
Issue is...cells[6] is in another table. Grid is like as shown
A B C D E F button
A1 B1 C1 D1 E1 F1 button
A2 B2 C2 D2 E2 F2 button
above is a grid which contains a table. Also "button" is further in another table
I am able to read the content of cells[6](ie text "button" is getting printed in log) but unable to click the button in cells[6]
//Serializing
public static ArtOfTest.WebAii.Design.Execution.TestResult GetConfigEnvironment(string strPath)
{
XmlSerializer ser = new XmlSerializer(typeof(ArtOfTest.WebAii.Design.Execution.TestResult));
using (var settingsFile = System.IO.File.OpenRead(strPath))
{
return (ArtOfTest.WebAii.Design.Execution.TestResult)ser.Deserialize(settingsFile);
}
}