Results 1 to 40 of 555

Thread: VB6 WebView2-Binding (Edge-Chromium)

Threaded View

  1. #11
    Lively Member
    Join Date
    Mar 2022
    Posts
    66

    Re: VB6 WebView2-Binding (Edge-Chromium)

    Quote Originally Posted by Schmidt View Post
    WV.jsRun is thought for simple (for the most part, self-defined) functions...

    For more complex "actions" like yours above, try it with:
    WV.ExecuteScript "document.getElementById('Somebutton').click()"
    instead.

    HTH

    Olaf

    I'm trying to simply automatically login to a website. I'm replacing a VB6 webbrowser control. I have already analyzed the login page and I know the fields I want to fill in are "user_name" and "user_password". The login button is on the first (0) form on the page. So, I used to do this:

    set w=webbrowser.Document
    set f=w.forms.item(0)
    set e=f.elements
    e.Item("user_name").Value = <myuserid>
    e.Item("user_password").Value = <mypassword>
    f.submit


    My question is, how do I do this with the new WebView since the DOM is not there, and the Submit button doesn't *have* a name?

    Thanks!
    Last edited by BooksRUs; Mar 15th, 2022 at 09:00 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width