Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!