You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 24, 2018. It is now read-only.
try{awaitchromeless.goto('https://www.graph.cool')awaitchromeless.click('.no-such-selector')}catch(e){console.log('Failed to click an element')constscreenshot=awaitchromeless.screenshot()console.log(screenshot)}awaitchromeless.end()
When element is not found on the page, I expect an Exception to be thrown, that I can handle in catch and make a screenshot. But instead I am seeing an globally thrown error Error: wait(".no-such-selector") timed out after 10000ms that I cannot catch.
How should I handle such case and dump screenshot of the page, if anything goes wrong?
mgolus, rippo, cwohlman, hypervillain, xdamman and 5 more