Hi DW, I'm trying to automate using NAVIS, I tried using post method simulating how it does on a web browser but I get error 678 then now I'm trying to access it using vb.net web browser.It does load but the issue is that I can't set the input elements value automatically using this code
WebBrowser1.Document.GetElementById("iNfYj").SetAttribute("value", "Testing")
this line of code is inside a button on my form.
Heres how I load the page on form load

Private Sub frmMenu_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        WebBrowser1.Navigate("http://41.162.72.195:9080/apex/capHomeView.zul")
    End Sub

To automate input fields using a WebBrowser control in VB.NET, ensure that the page is fully loaded by handling the DocumentCompleted event. In your code, you can navigate to the desired URL and then, within the DocumentCompleted event, use the GetElementById method to access the input field. Once the element is identified, you can set its value using the SetAttribute method. It's important to check if the element exists (If inputElement IsNot Nothing) before setting its value to avoid errors. If you continue facing issues, ensure the element ID is correct and consider using tools like Selenium for more complex automation if the WebBrowser control doesn't meet your needs.

Thanks, as of using document complete I was using it and it is where I try to find the elements but it doesn't find any.

You can try it on your end with the same url and see if you will be able to fill any of the fields automatically

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.