Issue
I am trying to automate WhatsApp
. I use selenium but the issue is that I have to scan QRCode
every time I launch a chrome instance
. I tried by saving the cookies
of logged browser and then load the cookies
but it didn't work and still show the QRcode
to sign in.
I wanted to store WhatsApp login
so that I don't have to log in every time I run the script.
Is this something possible with Selenium
or if there is another better way?
Solution
Add chrome profile , that will allows reusing session data:
chrom_options.add_argument("user-data-dir=C:\\Users\\AppData\\Local\\Google\\Chrome\\User Data")
To get user data drectory:
open : chrome://version in address bar
copy till user data don't need profile part
Answered By - PDHide
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.