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
Is there any way how to graceful exit script when selenium throw some error?
e.g $browser.findElement($driver.By.css("input[type='email']")) when there is no such element
I would like to propagate this error outside with console log of chrome(not necessary).
But the only way is to throw error from script, but that's not possible from catch in promise $browser.findElement($driver.By.css("input[type='email']")).catch(function(err) { throw 42;}));
This can't work.
I would like to know where the error occured and log it.
The text was updated successfully, but these errors were encountered:
Is there any way how to graceful exit script when selenium throw some error?
e.g
$browser.findElement($driver.By.css("input[type='email']"))
when there is no such elementI would like to propagate this error outside with console log of chrome(not necessary).
But the only way is to throw error from script, but that's not possible from catch in promise
$browser.findElement($driver.By.css("input[type='email']")).catch(function(err) { throw 42;}));
This can't work.
I would like to know where the error occured and log it.
The text was updated successfully, but these errors were encountered: