Click here to Skip to main content
15,882,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The new code I tried didn't seem to work so I'm looking for guidance on how my VB code setup for an IE browser can be converted to work in the Chromium browser:


Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    Value.Text = Value.Text - 1

    If Value.Text = 0 And
        WebBrowser1.DocumentText.Contains(User.Text) Then

        WebBrowser1.Document.GetElementById("msg").InnerText = R1.Text
       WebBrowser1.Document.GetElementById("submit").InvokeMember("Click")
        Value.Text = 240
        LatestActivity.Text = (DateTime.Now.ToString())

    End If
End Sub


What I have tried:

To begin I tried this, but unfortunately had no luck with it:

browser.ExecuteScriptAsync("document.GetElementById('message').InnerText;" = R1.Text)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900