Python python selenium as popup window (without bars, no fullscreen)

Hi, I want only show the browser window without menu bar, navigation bar, addons or bookmarks as popup window.
The only problem is the previous switch to full screen and the subsequent normalization.
Does anyone know of another method for displaying firefox as a popup window without full screen?

Code:
from selenium import webdriver
from selenium.webdriver.firefox.service import Service
from selenium.webdriver.firefox.options import Options
options = Options()
options.add_argument("--kiosk")

# don't works (it seems to work only with chromium, apparently)
options.add_argument("--content-shell-hide-toolbar")
options.add_argument("--top-controls-hide-threshold")
options.add_argument("--app-auto-launched")
options.add_argument("--disable-blink-features=AutomationControlled")
options.add_argument("--disable-infobars")

driver = webdriver.Firefox(service=Service(executable_path="./geckodriver"), options = options)
driver.set_window_size(1024, 768)
driver.get("https://duckduckgo.com")
 
I only have firefox, I need selenium for automatic router control.
Unfortunately, I am not familiar with FreeBSD, so I would probably have to rewrite the bash code completely.
But thanks, I'm going to find out about FreeBSD.
 
Back
Top