from pyvirtualdisplay import Display
from selenium import webdriver
display = Display(visible=0, size=(800, 600))
display.start()
driver = webdriver.Chrome()
driver.get('http://google.com/')
driver.quit()
display.stop()
Selenium is not capable of modifying your desktop resolution!