class_docstr: Selenium WebDriver wrapper that adds folium test specific features.
class_docstr_tok: ["Selenium","WebDriver","wrapper","that","adds","folium","test","specific","features","."]
docstr: Raise an error if there are errors in the browser JS console.
docstr_tok: ["Raise","an","error","if","there","are","errors","in","the","browser","JS","console","."]
code: def verify_js_logs(self):
      """Raise an error if there are errors in the browser JS console."""
      logs = self.get_log("browser")
      for log in logs:
          if log["level"] == "SEVERE":
              msg = " ".join(log["message"].split()[2:])
              raise RuntimeError(f'Javascript error: "{msg}".')
  
file_path: folium/tests/selenium/conftest.py
imports: import pytest
  from selenium.webdriver import Chrome, ChromeOptions
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.expected_conditions import visibility_of_element_located
  from selenium.webdriver.support.ui import WebDriverWait
label_desc: Use image node_id 4 for calling the DriverFolium obj's underlying member method code with example usage: obj.verify_js_logs() without return types