Results 1 to 3 of 3

Thread: innerhtml error

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2014
    Posts
    8

    innerhtml error

    Name:  error.jpg
Views: 547
Size:  35.1 KB

    I'm currently trying to automate getting data from a website for work using vb.net. Using the webbrowser, I get the error shown when I open a specific page. Anyone any idea why? When I use IE it works fine and no error appears but the automation is important. Alternatively, anyone know how to click on "yes" because then the program continues and does exactly what it should do.

    Many thanks

  2. #2
    Hyperactive Member Vexslasher's Avatar
    Join Date
    Feb 2010
    Posts
    429

    Re: innerhtml error

    This should remove all of those script errors http://msdn.microsoft.com/en-us/libr...code-snippet-1

  3. #3
    Frenzied Member
    Join Date
    Oct 2012
    Location
    Tampa, FL
    Posts
    1,187

    Re: innerhtml error

    As Vexslasher pointed out, you can set .ScriptErrorsSupressed to True. Keep in mind that it is suppressing dialog boxes, but the behavior is such that if IE were to normally show a security dialog while .ScriptErrorsSupressed is true, IE it will automatically cancel the web page navigation.

Tags for this Thread

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