axWebrower 如何 输入 内容并提交
2021-06-30 18:06
标签:内容 cli pre word web val nbsp cti 找不到 axWebrower 如何 输入 内容并提交 So Easy ! Mark ,省得自己找不着。 mshtml 找不到? 私我。这货真心不好找。 axWebrower 如何 输入 内容并提交 标签:内容 cli pre word web val nbsp cti 找不到 原文地址:http://www.cnblogs.com/xiaee/p/7135995.html mshtml.IHTMLDocument2 doc2 = (mshtml.IHTMLDocument2)axWebBrowser1.Document;
mshtml.IHTMLElementCollection inputs;
inputs = (mshtml.IHTMLElementCollection)doc2.all.tags("INPUT");
mshtml.IHTMLElement element = (mshtml.IHTMLElement)inputs.item("j_username", 0);
mshtml.IHTMLInputElement inputElement = (mshtml.IHTMLInputElement)element;
//用户名1/密码1
inputElement.value = "用户名1";
element = (mshtml.IHTMLElement)inputs.item("j_password", 0);
inputElement = (mshtml.IHTMLInputElement)element;
inputElement.value = "密码1";
element = (mshtml.IHTMLElement)inputs.item("imageField", 0);
element.click();
文章标题:axWebrower 如何 输入 内容并提交
文章链接:http://soscw.com/index.php/essay/99958.html