How can I disable Java Script in Selenium\'s Chrome Driver using python
It's Really easy ! Just try this code !
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_experimental_option( "prefs",{'profile.managed_default_content_settings.javascript': 2})
chrome = webdriver.Chrome('chromedriver',chrome_options=chrome_options)
chrome.get('http://stackoverflow.com/')
If you want to disable Images, just replace javascript with image.