Avatar of aplelois
aplelois

asked on 

hit enter after entered data in a website form

hello,
Im having a hard time with a website, im trying to submit the data
with enter or clicking the submit button, but I can get it done.
im able to put the data into the yext fields this is what i have

        Call WebBrowser1.Navigate(New System.Uri("http://www.myspacetrain.com/join2.php"))

        For i = 1 To 100
            Sleep((100))
            System.Windows.Forms.Application.DoEvents()
        Next

        With WebBrowser1.Document.DomDocument
            txtOne = .GetElementsByName("friendID")(0)
            txtTwo = .GetElementsByName("name")(0)

            txtOne.Value = "12345678"
            txtTwo.Value = "hello"
            .Forms(0).submit() ' this is not working right
        End With

        For i = 1 To 100
            Sleep((100))
            System.Windows.Forms.Application.DoEvents()
        Next
Visual Basic.NET

Avatar of undefined
Last Comment
Kudzullc

8/22/2022 - Mon