NXP-15919: add javascript error check on webdriver test