Mehmet Fatih

Mehmet Fatih

  • 853
  • 941
  • 42.4k

Printing the data captured with selenium to the datagridview cell

Jan 4 2024 12:21 PM

I want to fill information such as name, surname, etc. in the empty columns with Selenium according to the student numbers drawn from Excel to DataGridView. However, I'm stuck getting data into empty columns. Is there anyone who can help with this?

var val2 = drv.FindElement(By.Id("txtAdi")).GetAttribute("value");

val2 = dataGridView1.Rows[i].Cells[1].Value.ToString(); // datagridview cell to which I want to assign val2 data. I want to solve this line.


Answers (5)