user14657232
user14657232

Reputation:

How do I make selenium chrome open in full screen?

Is there anyway to make selenium open in fullscreen? No need to add any code as this is just a question not really an issue with my code. I need to make it go fullscreen because an element will only load if it's in fullscreen.

Upvotes: 1

Views: 2086

Answers (1)

DonnyFlaw
DonnyFlaw

Reputation: 690

You can create WebDriver instance with respectful option

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument("--start-maximized")

driver = webdriver.Chrome(chrome_options=options)

or just call driver.maximize_window() to maximize already opened Chrome window

Upvotes: 3

Related Questions