简体   繁体   中英

VB, How to set textbox value using webbrowser

Can anyone tell me how can I set TextBox value using WebBrowser control?

Code:

    WebBrowser1.Navigate("https://signup")

    Do Until WebBrowser1.ReadyState = WebBrowserReadyState.Complete
        Application.DoEvents()
    Loop


    WebBrowser1.Document.GetElementById("MemberName").SetAttribute("value", "Luxury_UAE_AE@outlook.com")

    WebBrowser1.Document.GetElementById("iSignupAction").InvokeMember("Click")

WebBrowser1.GetElementById("MemberName").InnerText = "Luxury_UAE_AE@outlook.com"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM