Launching Selenium with JavaScript Disabled

I have a rather obscure situation where I want to launch Selenium… but with JavaScript disabled.

from selenium import webdriver
from import Options
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

After a bit of Googling it turns out that this is eminently possible by just setting some options prior to launching the browser.

chrome_options = Options()

Now create a browser instance.

browser = webdriver.Remote(

Head over to to check.


Looks good. Success!

Note: This has been tested with:

  • selenium/standalone-chrome-debug:3.141.