I am looking for help in searching for and finding the number in the datagridview on the web page and finding the line number where the number is located.

var arama = drv.FindElement(By.XPath("/html/body/form[2]/table/tbody/tr[3]/td[2]/table/tbody/tr[5]/td/table/tbody/tr[2]/td/table/tbody/tr/td/table/tbody/tr["+(i+2)+"]/td[5]"));
if (val0 != null)
{
int RowCount = drv.FindElements(By.XPath("/html/body/form[2]/table/tbody/tr[3]/td[2]/table/tbody/tr[5]/td/table/tbody/tr[2]/td/table/tbody/tr/td/table/tbody/tr[\"+(i+2)+\"]/td[5]")).Count;
var tikla = drv.FindElement(By.XPath("/html/body/form[2]/table/tbody/tr[3]/td[2]/table/tbody/tr[5]/td/table/tbody/tr[2]/td/table/tbody/tr/td/table/tbody/tr["+(RowCount)+"]/td[1]/a/img"));
tikla.Click();
}
Rajeesh MenothPosted Jan 12, 2024, 3:48 AM
Hi,
Any how you are using DataGridView then you can experiment with using GridView events to trigger backend processes. Check out the following reference article for more details.
https://stackoverflow.com/questions/24590132/retrieving-number-value-from-datagridview-c-sharp