Score:0

Login to google chrome profile in a docker container

lc flag

I am using selenium standalone chrome image to run selenium automation scripts on a docker container. All the websites I am trying to automate have the option to sign in using google. But in order to do that I will need to be logged in to chrome session created by selenium. The brute force way to do that would be to enter my email address and password for my google account and disable 2FA. But I don't want to do that.

I know that we can provide the path to our chrome data directory as options while initializing the webdriver: directory_profile = "C:\\User\\yourUserOfYourPc\\AppData\\Local\\\Google\\Chrome\\User Data\\Default" #if you have only one profile, you can use this setting, however it's not, type it until "User Data"

Can I add these credentials to the linux system created by the docker image using google cloud/google api?

Basically I need some way to log in to my google account inside the chrome session created by selenium webdriver in the docker container.

Thank you for your time...

jabbson avatar
sb flag
What do you mean by `using google cloud/google api`? Where are you running your containers and where is your profile stored?
musical_ant avatar
lc flag
@jabbson right now my container is running on my windows machine and I'll be deploying it to aws. My profile isn't stored anywhere rn. That's what I need to do. Login to Google and save my origins information at some path in the container. But i dont know how to do that...
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.