How would you go about extending the ElementHandle class to add more useful methods such as
handle.isVisible?
I could do isVisible(handle) but I prefer the other way around.
I tried to do require( "puppeteer/lib/cjs/puppeteer/common/JSHandle" ).ElementHandle and extend it from there via prototype
but when I added the require to my code it broke some other part of my code.. Is there a better way?
Thank you!