I agree. I think we’ll leave this under bug reports for now. I’m not able to set up a reasonable test bed to work this through (time constraints). I’m hoping @devalex88/@ThanhTo can throw some light on it.
Meanwhile…
try {
callTestcase(...)
} catch(Exception e) {
closeBrowser() // perhaps?
// throw e // perhaps?
}
I’ll also give a shout out to @kazurayam - he’s done some work in this area, I believe (but he’s likely not around for a good few hours)