DeprecationWarning: use options instead of chrome_options browser = webdriver.Chrome(executable_path=driver_path, chrome_options=option) T code example
Example: DeprecationWarning: use options instead of chrome_options
options = webdriver.ChromeOptions()
options.add_argument('--headless')
driver = webdriver.Chrome(executable_path=r'C:\chromedriver_win32\chromedriver.exe', options=options)