【发布时间】:2015-03-14 08:52:33
【问题描述】:
<input onfocus="showInfoBox(this, "Varchar(100) Latin capital letters only (A-Z) and spaces between surnames")" onblur="hideInfoBox()" value="" name="Surname"><input>
我需要通过网络浏览器填写输入。当我尝试填充时,我收到 System.ArgumentOutOfRangeException 错误。我该如何填写这个输入区域?
这是我的代码
webBrowser1.Document.GetElementsByTagName("Surname")[0].SetAttribute("MySurName", "true");
【问题讨论】:
-
检查我的答案并告诉我是否对你有帮助
-
不知道是不是来晚了,但你可以试试:webBrowser1.Document.Window.Document.GetElementsByTagName.....
标签: c# html input webbrowser-control