5
Answers

Printing the data captured with selenium to the datagridview cell

Mehmet Fatih

Mehmet Fatih

1y
343
1

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)