I use WebBrowser to browse some web pages, but I ran into a small problem loading scripts.

The code below did not solve my problem, I want the stable operation of all scripts, not to hide them.

webBrowser1.ScriptErrorsSuppressed = true; 

For example, This site runs fine in Internet Explorer without any errors, but when I open it in C # webBrowser, I get 6-8 script errors.

The first of them:

enter image description here

Please, tell me what to do with this problem?

This link did not help me: https://stackoverflow.com/questions/25142594/allowing-javascript-to-run-on-a-windows-form-web-browser

PS: I copied a link to * .js from the error window, and pasted the browser into IE - an error, and in Chrome it opened.

  • Is Russian out of fashion?) - NMD
  • 3
    Translate the question into Russian. With questions in English on you on stackoverflow.com, and you, please note, on ru.stackoverflow.com. - VladD
  • one
    This question should be closed, because ruSO - Kromster
  • Now in Russian - 4per
  • one
    By default, WebBrowser uses the IE engine, either a very old version or in compatibility mode, so it will not work with new scripts. Try using version 2 of jquery instead of version 3. And the link from the question should help - Grundy

2 answers 2

First of all, sorry for the foreign one, I haven't dealt with this site before. The problem is still decided, who cares - here . Now only deal with the captcha left.

    This can not help:

     webBrowser.ScriptErrorsSuppressed = true; 

    Tested 100,500 times.

    You can try Selenium there are no problems with scripts

    • Yah? And how do you think it can help? - Pavel Mayorov
    • What exactly? Hiding errors will remove the window, and Selenium calmly runs the scripts (most likely) - Serg