from selenium import webdriver options = webdriver.ChromeOptions() options.add_argument('--headless') options.add_argument('--disable-gpu') browser = webdriver.Chrome("/usr/local/bin/chromedriver", chrome_options=options) browser.get('http://127.0.0.1:8000') assert 'Django' in browser.title browser.get('http://127.0.0.1:8000/admin/') assert 'Django' in browser.title