Making Whatsapp Web not needing QR-scanning how this work - Selenium

60 views
Skip to first unread message

Joao Paulo

unread,
Aug 31, 2020, 2:39:29 AM8/31/20
to Selenium Users
Hi:

I put this code to active without QR code...but it doenst funciton.
I open de whatsweb, scan the QR and closed all. After I active the code bellow but its doesnt work. Could anybody help me?


options = webdriver.ChromeOptions()
options.add_argument(r"D:/pythonProject/Aulas/scripts/Projetos/whatsautomatico/driver/data") #here is no <Default>!!
driver = webdriver.Chrome(executable_path='D:\pythonProject\Aulas\scripts\Projetos\whatsautomatico\driver\chromedriver',
                          options=options)  # selenium 4 preferes "options" -> your code is more up to date :-)

time.sleep(15)

Reply all
Reply to author
Forward
0 new messages