Я уже добавил следующие строки из примера , но локальная сеть продолжает блокироваться, и мне нужно включить flash manualy
firefoxProfile.set_preference("dom.ipc.plugins.enabled.libflashplayer.so","true")
firefoxProfile.set_preference("plugin.state.flash", 2)
Я другой рукой, хочу сделать скриншотэтой сети.Раньше я пытался с IE и Chrome безуспешно из-за того, что экран в безголовом режиме просто делал белый скриншот, и Firefox - мой последний вариант
Полный код
from selenium import webdriver
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
from selenium.webdriver.firefox.options import Options as FirefoxOptions
import time
firefoxProfile = FirefoxProfile()
firefoxProfile.set_preference("dom.ipc.plugins.enabled.libflashplayer.so","true")
firefoxProfile.set_preference("plugin.state.flash", 2)
driver = webdriver.Firefox(firefoxProfile, executable_path="geckodriver.exe")
driver.get('http://10.172.128.70:8080/mineview/Content/DMO04.html')
time.sleep(10)
driver.save_screenshot('img_firefox.png')
driver.quit()