2010-07-12 3 views

답변

1

첵 그는 도움을

HtmlElementCollection trytologin = ((WebBrowser)sender).Document.GetElementsByTagName("input"); 

    var usernameInput = (from HtmlElement input in trytologin where input.Name == "username" select input).Single(); 
    var passwordInput = (from HtmlElement input in trytologin where input.Name == "password" select input).Single(); 
    usernameInput.SetAttribute("value", "myusrname"); 
    passwordInput.SetAttribute("value", "mypassword"); 
+0

감사의,하지만 그것을 어떻게 사용 하는가? 그것 doent 일 – Gold

+0

당신은 무언가를 시도 했습니까 ??? 당신은 몇 가지 코드를 게시 할 수 있습니까 ?? – Luiscencio

+0

나는이 코드를 시도하고 아무 것도하지 않는다. ..... – Gold

관련 문제