The following error is occurred when we clicking the sub menus from main menu(Mouse hover).
 Help me how to solve this issue.
Help me how to solve this issue.
if (browserLogs) {
    browserLogs.forEach(function (log) {
        var logLevel = context.config.failTestOnErrorLog.failTestOnErrorLogLevel ? context.config.failTestOnErrorLog.failTestOnErrorLogLevel : 900;
        var flag = false;
        if (log.level.value > logLevel) { // it's an error log
            if (context.config.failTestOnErrorLog.excludeKeywords) {
                context.config.failTestOnErrorLog.excludeKeywords.forEach(function (keyword) {
                    if (log.message.search(keyword) > -1) {
                        flag = true;
                    }
                });
            }
            expect(log.level.value > logLevel && flag).toEqualBecause(true, 'Error logs present in console:' + require('util').inspect(log));
        }
    })
}
 
    