I have c# code like the following to loop through rows to get new code in this case the loop not finished but code created
for (int i = 1; i < 100; i++)
{
driver.FindElement(By.Id("Code"))
.SendKeys(data.ExcelFile(i, 1));
driver.FindElement(By.Id("Code")).Click();
}
I try to use break with if statement and assertion but not work
how can I make the test pass also