Selenium Webdriver can run in the background, i.e. without opening a browser window, by running it in Headless mode. To do this you need to add the required capability to the set-up code for the driver. In Python with Chromedriver you need to add the following line of code when writing the chrome_options:
Headless mode is available to most other browser/language combinations too.