Improve browser test stability with exception catch