Hey,

I am building a Whatsapp service to provide great articles into people's Whatsapp inbox, which is growing steadily. (https://www.time-less.eu/whatsapp/).

We have built a bot in Selenium that sends the articles through Whatsapp Web.

PROBLEM:
- Every time we start our function to send articles, a new webdriver instance is opened.
- We then need to log in to Whatsapp Web, and scan the QR code with our smartphone every time again (see image).
- This creates manual work and mistakes.

NECESSARY SOLUTION:
I am looking for input on how to solve this problem, and would like to collaborate with people who think they  can provide a solution within a reasonable amount of hours.

I provide some more context below, but it is possible to get into more detail via e-mail or Skype, just contact me here.

So I am looking for people with experience in Python/Selenium  (and possibly running it on Heroku/Browserstack, but the solution might not include that.... Open to alternatives).


CURRENT WORKING:
- Code written in PYTHON (DJANGO)
- Database/code running on HEROKU servers
- We run a remote SELENIUM webdriver on BROWSERSTACK.
It is the screenshot function of Browserstack that allows us to scan the QR code. (see image)
- The Whatsapp service runs on Android Smartphone that I own, on Whatsapp Business app.

TRIED SEVERAL SOLUTIONS:
1) Run a REMOTE webdriver on Browserstack, and use Chrome Options [user-data-dir=...]
-- Doesn't work, Selenium doesn't allow transfer of a remote profile

2)  Run a NON-REMOTE webdriver on Heroku, and use Chrome Options [user-data-dir=...]
-- This works locally
-- Does not work when running on Heroku

3) Save the cookies of a session and re-load them
-- Not desired result (still need to scan the QR code)

4) Try the same solutions with Firefox
-- Not desired result

I can provide code snippets ofcourse.


Posted On: November 08, 2018 17:28 UTC
Category: Web, Mobile & Software Dev > QA & Testing
Skills: Browser Automation, Django, Heroku, Python, Selenium, Selenium WebDriver
Country: Belgium
click to apply