open-wa / wa-automate-python

💬 🤖 The most advanced Python whatsapp library for chatbots with advanced features. Be sure to ⭐ this repository for updates!
Other
330 stars 71 forks source link

Unable to open chrome instance with --headless and --user-data-dir flag at the same time. #41

Closed Manjit2003 closed 3 years ago

Manjit2003 commented 3 years ago

@mrodal I have been trying to open a WhatsApp web instance with headless=True and profile='blah..blah...blah' but the instance is not starting and it is stuck and also not showing any thing on the screen... But when i try with headless= False the instance works perfect... Please help me fix the issue...

darkash commented 3 years ago

what do you mean stuck and not showing anything on the screen? isn't that what headless option is for?

or what you mean the wait_for_qr() method is stuck and later crash? If that's the case, you can try bisect the selenium lib and put log in there to find what's going on. or check the browser debug log