点击按钮webrowser? [英] Click on the button webrowser?
本文介绍了点击按钮webrowser?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
如何点击这个按钮?
hello
How do I click this button?
<div önclick="addTag();" style="float:right;width:50px;background:#E5E5E5;border:1px solid #80B5D0;line-height:21px;margin-removed3px;padding:0px 5px">add key</div>
con not:
con not:
HtmlElementCollection elc = this.webBrowser1.Document.GetElementsByTagName("input");
foreach (HtmlElement el in elc)
{
if (el.GetAttribute("value").Equals("ارسال"))
{
el.InvokeMember("Click");
}
}
和
and
webBrowser1.Document.GetElementById("btnSave").InvokeMember("click");
和
and
webBrowser1.Document.GetElementsByTagName("INPUT")[10].InvokeMember("Click");
推荐答案
访问这里..
自动Web浏览 [ ^ ]
或
自动化网页浏览 [ ^ ]
visit here..
Automated Web Browsing[^]
or
Automating web browsing[^]
你好专业
这里你需要让你的标签表现为块级元素,并给它与父元素相同的大小。
喜欢: -
hello professional
here you need to Make your tag behave as a block level element and give it the same size as to the parent element.
like :-
<div class="wholediv">
<a href="http://www.google.com">Your link</a>
</div>
制作你的风格
style="float:right;width:50px;background:#E5E5E5;border:1px solid #80B5D0;line-height:21px;margin-removed3px;padding:0px 5px"
在CSS中:
赞:
in CSS:
Like :
.wholediv{
width: 100px;
height: 100px;
background-color: #efefef;
}
.wholediv a {
width: 100px;
height: 100px;
display:block;
background-color: pink;
}
更多你可以点击这里
http://stackoverflow.com/questions/18833353/how-to-make-a-div-可点击 [ ^ ]
乐于助人!!
for more you can click here
http://stackoverflow.com/questions/18833353/how-to-make-a-div-clickable[^]
Happy to help!!
这篇关于点击按钮webrowser?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文