Home > database >  Is there a way to disable the end user from entering URL's with selenium in Python?
Is there a way to disable the end user from entering URL's with selenium in Python?

Time:11-17

The goal is a locked-in end system.

from selenium import webdriver
driver = webdriver.Firefox()
driver.fullscreen_window()
driver.get("https://google.com/")

This opens a fullscreen window but still allows users to enter URL's by hovering the mouse near the top of the screen. Is there a way to permanently hide the URL bar? Alternatively, is there a way to disable entering a URL?

CodePudding user response:

Kiosk mode will disable all GUI elements.

from selenium import webdriver
from selenium.webdriver.firefox.options import Options

option = Options()
option.add_argument("--kiosk")
driver = webdriver.Firefox(options=option)
driver.get("https://google.com/")
  • Related