'Logging into google account via chrome instance
Would you know how can I add my profile to a selenium chrome instance?
Basically, when I open chrome manually I have all the bookmarks I have access to and I was wondering if there is any way I can get my default bookmarks in the chrome instance too
Please see the image to get a better idea below
***Here is my screen in google when I click through the taskbar manually and in this, I can see my bookmarks since I'm logged into my profile *** enter image description here
***Here is my google screen when I access with chrome instance and in this, I cannot see my bookmarks since I'm not logged into my profile ***
Code:
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
chrome_options = Options()
chrome_options.add_experimental_option("detach", True)
driver = webdriver.Chrome(
service = Service(ChromeDriverManager().install()),
options = chrome_options
)
#opens the google website
driver.get("https://www.google.com/")
Is there any way to have my profile linked to the chrome instance too so when I execute my code it signs me into my profile and I can access my bookmarks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
