code: def get_browser_log(self, levels=None):
          
          logs = self.driver.get_log('browser')
          self.browser_logs += logs
          if levels is not None:
              logs = [entry for entry in logs if entry.get(u'level') in levels]
          return logs
docs: Gets the console log of the browser
  
          @type levels:
          @return: List of browser log entries