Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

164
Vistas
WebView2 / CoreWebView2 - Detecting if a javascript error happens

I have written a web-crawler to test a pre-release website for errors and issues (i.e. missing content type, timeouts, exceptions, redirects).

This morning a colleague asked me to include a check if there was any javascript error on the page...

A pure javascript solution is unlikely -- i.e. detect all JS errors, using JS

What I appear to want to be able to do is capture the javascript console text, ideally via CoreWebView2

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If the page logs each exception into an array,

Errors=[] window.onerror = function (msg, url, line) { Errors.push("Caught[via window.onerror]: '" + msg + "' from " + url + ":" + line); return true; };

Then you can just query the Errors and see both the count and the nature of the errors.

You can also push errors from try catch

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda