I am using selenim with c#. I want to increase the div number one by one each time. I am trying the following codes by beginning the second line.but it doesn't work What is the solution?
for (int i = 0; i < dataGridView1.Rows.Count; i++) { var val1 = dataGridView1.Rows[i].Cells[3].Value.ToString().;
driver.FindElement(By.XPath("/html/body/app-root/app-auth/app-public/app-card/div/div/div[6]")).Click(); driver.FindElement(By.XPath("/html/body/app-root/app-auth/app-public/app-card/div/div/div[6]/div[i+2]/div/div[1]/kendo-datepicker/button/span")).Click();
Thread.Sleep(100); driver.FindElement(By.XPath("/html/body/app-root/app-auth/app-public/app-card/div/div/div[6]/div[i+2]/div/div[1]/kendo-datepicker/button/span")).Click(); }