I want to allow location and notifications on Selenium
in incognito mode but I guess something wrong in that. Here is my code:
import selenium
from selenium.webdriver.chrome.options import Options
from selenium import webdriver
option = Options()
option.add_argument("--incognito")
option.add_argument("--disable-infobars")
option.add_argument("start-maximized")
option.add_argument("--disable-extensions")
option.add_experimental_option("prefs", {
"profile.default_content_setting_values.notifications":1,
"profile.default_content_setting_values.geolocation": 1,
"profile.default_content_setting_values.notifications": 1
})
driver = webdriver.Chrome(options=option, executable_path="D:X PROJECTS\\chromedino\\Webdriver\\chromedriver.exe")
I have found a solution but it doesn't work