Maximization of a webbrowser through Python selenium is very easy. In short, all you have you have to do is start the browser and call the maximize_window().

(Selenium is a Python module that uses a web driver to control a web browser for you)

Related course:

selenium

selenium maximize

First import webdriver and the time module. You need the selenium web driver installed. Then open firefox with webdriver.Firefox() and maximize the window with the call maximize_window().

1
2
3
4
5
6
7
8
from selenium import webdriver 
import time

driver = webdriver.Firefox()
driver.maximize_window()
time.sleep(5)

driver.get("https://www.python.org")

selenium maximize