Opening a web browser in full screen python

Couzy picture Couzy · Feb 28, 2017 · Viewed 9.6k times · Source

I am currently trying to code a basic smartmirror for my coding II class in high school with python. One thing I'm trying to do is open new tabs in full screen (using chrome). I currently have it so I can open url's, but I am not getting them in full screen. Any ideas on code I can use to open chrome in full screen?

Answer

Beomi picture Beomi · Feb 28, 2017

If you're using selenium, just code like below:

from selenium import webdriver

driver = webdriver.Chrome()
driver.get('https://google.com')
driver.maximize_window()