selenium for chrome code example
Example 1: selenium incognito chrome
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--incognito")
driver = webdriver.Chrome(chrome_options=chrome_options)
driver.get('https://google.com')
Example 2: how to open chrome browser in selenium
I would create chrome driver from webdriver manager by typing
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();