We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66cdd02 commit 2cd1272Copy full SHA for 2cd1272
1 file changed
folium/folium.py
@@ -379,8 +379,9 @@ def _to_png(
379
if self._png_image is None:
380
if driver is None:
381
from selenium import webdriver
382
+ from selenium.webdriver.firefox.options import Options
383
- options = webdriver.Firefox.options.Options()
384
+ options = Options()
385
options.add_argument("--headless")
386
driver = webdriver.Firefox(options=options)
387
0 commit comments