Добрый день!
Имеется подобный html код
<div class="b-main-form-field b-main-form-field--logon_button">
{{include "checkbox"
name = "RememberMe"
value = "запомнить меня"
tabindex = 11
}}
{{include "button"
style = "darkform"
name = "logon"
value = "Войти"
tabindex = 12
}}
</div>
Как имитировать нажатия кнопки Login на с#.
Пробовал решение приведенное ниже - не работает.
HtmlElementCollection ee = webbrowser.Document.all.GetElementByName("button");
If (ee.count > 0)
{
HtmlElement btnLogon = ee[0];
btnLogon.InvokeMember("click");
}
else{
....
}
webbrowser.Document.all.GetElementByName("button")
? – Grundy♦ 27 ноя '15 в 9:04{{...}}
– Grundy♦ 27 ноя '15 в 16:24{{include "button" style = "darkform" name = "logon" value = "Войти" tabindex = 12 }}
? – Grundy♦ 27 ноя '15 в 16:34