Запускаю тест из под Visual studio, тесты выполняются в Chrome, в нем всегда включен Flash’ый плагин.
Подскажите как выключить Flash?
Google вроде не отключали-)
- Open Chrome and enter “about: plugins” into the URL bar and hit return
- Find Flash in the plug-ins list and click on “Disable”
Но я как понимаю, надо программно отключить. Попробуйте через опции старта браузера:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("--disable-bundled-ppapi-flash")
driver = webdriver.Chrome(chrome_options=chrome_options)
А полный список опций можно найти тут List of Chromium Command Line Switches « Peter Beverloo
1 Like