Soo ive figured out how to get element by id, but i dont know how i can get element by name Here is my code:
private void SendData() { webBrowser1.Docume
You can get an HtmlElementCollection - for example, using GetElementsByTagName method. Then, HtmlElementCollection has GetElementsByName method:
HtmlElementCollection
GetElementsByTagName
GetElementsByName
webBrowser1.Document .GetElementsByTagName("input") .GetElementsByName("textfield2")[0] .SetAttribute("value", textBox1.Text);