Opening a minimalistic Chrome window with Selennium
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

chrome_options = Options()

chrome_options.add_experimental_option("useAutomationExtension", False)
chrome_options.add_experimental_option("excludeSwitches",["enable-automation"])
chrome_options.add_argument("--window-size=1240,740")
chrome_options.add_argument("--app=http://www.jaimedcsilva.com"); 

driver = webdriver.Chrome(options=chrome_options)

input("")

driver.quit()

 

The experimental options remove the information bar from selenium.
Optionally you can also set the window size.
The --app option removes the navigation bar.

 

Chrome window without navigation bar

 

List with other available options:
https://peter.sh/experiments/chromium-command-line-switches/


Tested with:
selenium==4.18.1


20 Nov. 2024 | Last Updated: 20 Nov. 2025 | jaimedcsilva

Related
  • Set up
  • Referencing Elements
  • Opening a minimalistic Chrome window with Selennium

  • Buy Me a Coffee