Submit Value To Html Textbox1 With Awesomium - Vb.Net

0 carter Cart · November 9, 2015
Using this code to load the website

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click          
WebControl1.Source = New System.Uri("") 


And this code to submit the value to html textbox1
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click  
WebControl1.ExecuteJavascript("document.getElementById('login-text').value=" + TextBox1.Text) 

The textbox with id (login-text) work fine but the other one ( pass ) always get empty ?

Post a Reply


Oldest  Newest  Rating
0 Ibrahim amen · November 29, 2016
Dear Carter , 

You can greating Textbox1 + Button 

You can Copy Login id (Text1 + Text2) As like fro FB 

then edit the id in this code 


   If (TextBox1.Text.Length < 3 Or TextBox1.Text.IndexOf(":") < 1) Then
            MsgBox("Please type value in format like {email:password}")
        End If

        ' Get the values and parse it
        Dim sources As String() = TextBox1.Text.Split(":")

        ' Now, we try to set it to page
        ' pay attention at `document.querySelector('#id')` it should be ID of the element
        WebControl1.ExecuteJavascript(String.Format("document.querySelector('#Text1ID').value = '{0}'", sources(0)))
        WebControl1.ExecuteJavascript(String.Format("document.querySelector('#Text2ID').value = '{0}'", sources(1)))

Hope You Get It As well ;)
  • 1

Visual Basic


One of the first products to provide a graphical environment and a paint metaphor for developing user interfaces.

Bucky Roberts Administrator