1#Open Browser
2option = webdriver.ChromeOptions()
3browser = webdriver.Chrome(executable_path='chromedriver.exe',options=option)
4
5#Remove navigator.webdriver Flag using JavaScript
6browser.execute_script("Object.defineProperty(navigator, 'webdriver', {get: () => undefined})")
7