【发布时间】:2017-06-27 14:42:38
【问题描述】:
所以基本上我想在网站上按下一个按钮,但它不起作用。 HTML 行如下所示:
<div id="btn-login">
<button type="submit">
<span>SIGN IN THROUGH STEAM</span>
</button>
</div>
而且,代码行如下所示:
webBrowser1.Document.GetElementById("btn-login").InvokeMember("click");
当我按下按钮时,没有任何反应。 我使用的网站是http://csgowitch.com
【问题讨论】:
-
div 不是按钮。将
id="btn-login"移动到按钮标签