I am Working on Coded Ui automation where at automation code on login page it's not navigating to next page but manually its working .Please help me out from this .
Please find the code :
public void mcp_table(string browser_property, string tbl_property, string tbl_pro_value, string tbl_operation)
{
string cell1;
BrowserWindow browser = new BrowserWindow();
browser.SearchProperties[BrowserWindow.PropertyNames.FriendlyName] = browser_property;
HtmlTable table = new HtmlTable(browser);
table.SearchProperties.Add(tbl_property, tbl_pro_value);
//HtmlCell cell = new HtmlCell(table);
//cell.SearchProperties.Add(tbl_property, tbl_pro_value);
for (int i = 1; i <= 13; i++)
{
for (int j = 1; j <= 5; j++)
{
HtmlCell cell = new HtmlCell(table);
cell.FilterProperties[HtmlCell.PropertyNames.RowIndex] = i.ToString();
cell.FilterProperties[HtmlCell.PropertyNames.ColumnIndex] = j.ToString();
cell1 = cell.InnerText;
HtmlCustom cellCustm = new HtmlCustom(cell);
cellCustm.SearchProperties.Add("InnerText", cell1);
HtmlDiv panehide = new HtmlDiv(browser);
// HtmlDiv panehide= this.FindControl("Id", "processDialog");
panehide.SearchProperties.Add("Id", "processDialog");
// panehide.WaitForControlExist();
//if (i == 1 && j == 1)
//{
//cell1 = cell.InnerText;
//HtmlCustom cellCustm = new HtmlCustom(cell);
//cellCustm.SearchProperties.Add("InnerText", cell1);
// }
int cell2 = Convert.ToInt32(cell1);
if(cell2>0)
{
switch (tbl_operation)
{
case "Click":
Mouse.Click(cellCustm);
// Mouse.
// panehide.EnsureClickable();
Playback.Wait(50000);
break;
case "Exists":
bool html_Tab;
html_Tab =(table.Exists == true);
break;
default:
Assert.Fail();
break;
}
}
else
{
Assert.Fail();
}
}
}
After mouse.click its unable to navigate to next page ...