I have a question about selenium webdriver for python. I'm creating an instance of Chrome to login into a website, then I would like to create multiple instances of webdriver USING the same first instance (like a copy) or at least multiple instances which keep stored credentials that I used.
simple code :
options = webdriver.ChromeOptions()
options.binary_location = "path/to/chrome.exe"
browser1 = webdriver.Chrome(chrome_options=options)
browser1.get(login_url)
browser1.find_element_by_name('auth-email').send_keys('@gmail.com')
browser1.find_element_by_name('auth-password').send_keys('pass' + Keys.RETURN)
Example :
I logged into https://github.com/ with browser1. If I open a new instance browser2 and browser3 and I get url like https://github.com/pulls which needs to be logged to see contents, I have to RE-LOGIN again to see content.
Is there a way to copy credentials from browser1 to browser2 and browser3 ? Thanks in advance and sorry for my english,