Mehmet Fatih

Mehmet Fatih

  • 858
  • 939
  • 41.2k

Searching and finding the number in the datagridview on the web page

Jan 11 2024 5:47 PM

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();
   }

 


Answers (1)