from selenium import webdriver
driver = webdriver.Firefox(executable_path='/usr/local/bin/geckodriver')
driver.get('http://www.google.com')
elem = driver.find_element_by_name('q')
elem.send_keys('Hello WebDriver!')
elem.submit()
сhrome --remote-debugging-port=9222 --user-data-dir="~/ChromeProfile"
chrome_options = Options()
chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options)