John Milton
John Milton

Reputation: 33

How to disable tabbed browsing, toolbar and address bar in selenium webdriver

enter image description here

I want to driver chrome with web page only.

Upvotes: 3

Views: 7884

Answers (2)

Kostas Mouratidis
Kostas Mouratidis

Reputation: 1265

For people using Firefox, it's also possible on Firefox 71+:

from selenium import webdriver

options = webdriver.FirefoxOptions()
options.add_argument("--kiosk")
options.add_argument("https://godotengine.org")
driver = webdriver.Firefox(options=options)

Upvotes: 0

vChen
vChen

Reputation: 96

disable address bar

ChromeOptions options = new ChromeOptions();
options.addArguments("--app=http://www.google.com"); 
driver = new ChromeDriver (options);

check more chrome options here

Upvotes: 8

Related Questions