X
X
xxxko2018-07-11 16:54:57
Python
xxxko, 2018-07-11 16:54:57

How to bind chrome profile in silentium python?

I need to open my profile in google chrome. With grief in half, it opens, but nothing can be done further in it. What is the problem ?

from selenium.webdriver import Firefox
from selenium.webdriver.firefox.options import Options
from selenium import webdriver
options = webdriver.ChromeOptions() 
options.add_argument("user-data-dir=C:\\Users\\User\\AppData\\Local\\Google\\Chrome\\User Data") 
browser = webdriver.Chrome(executable_path="C:\\chromedriver.exe", chrome_options=options)
browser.get('https://mail.ru')
search_form = browser.find_element_by_name('user')
search_form.send_keys('xxx')

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question