Giter Site home page Giter Site logo

Comments (5)

LucianoGanga avatar LucianoGanga commented on May 28, 2024

Hi @RTBz ! Sorry for the delay on the reply, I was out for a few days.

You mean a method to catch exceptions?

Cheers,
Luciano

from simple-headless-chrome.

fusionx1 avatar fusionx1 commented on May 28, 2024

Hi Luciano,

Im also interested to know how to best handle the exception. A sample snippets would be great.

Paul

from simple-headless-chrome.

LucianoGanga avatar LucianoGanga commented on May 28, 2024

@fusionx1 , you mean the Unhandled exception thrown when something fails?

You can just add a try-catch statement outside your navigation recipe.
You can see the example here:
https://github.com/LucianoGanga/simple-headless-chrome/blob/master/examples/clickSelector.js

If you mean exceptions thrown by the browser, I'm preparing an example with a function that can output what's in the browser's console.

I'll upload it in a minute.

Cheers,
Lucho

from simple-headless-chrome.

LucianoGanga avatar LucianoGanga commented on May 28, 2024

@RTBz, @fusionx1 you can check the example here.

I think this is what you needed, so I'll close the issue:
https://github.com/LucianoGanga/simple-headless-chrome/blob/master/examples/handleBrowserLog.js

Please, feel free to reopen it if this is not the response to your question :)

Lucho

from simple-headless-chrome.

fusionx1 avatar fusionx1 commented on May 28, 2024

Awesome thanks @LucianoGanga

from simple-headless-chrome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.