vasani-arpit / WBOT

A simple Web based BOT for WhatsApp™ in NodeJS 😜. Working as of 📅 Feb 4th, 2024
Other
986 stars 314 forks source link

Whatsappweb QRCODE div class update on 02 Feb 2020 #101

Closed adjie46 closed 4 years ago

adjie46 commented 4 years ago

I will test WBOT on version last beta. I see whatsapp web update html element

I success to update code for read new qrcode change code in index.js from

await page.waitForSelector("canvas[aria-label='Scan me!']"); var imageData = await page.evaluate(document.querySelector("canvas[aria-label='Scan me!']").parentElement.getAttribute("data-ref"));

to

await page.waitForSelector("._2RT36"); var imageData = await page.evaluate(document.querySelector("._2RT36").getAttribute("data-ref"));

MAZETAM commented 4 years ago

@adjie46 There is not something wrong with current code that used selector "canvas[.....". Why you said it as bug?

vasani-arpit commented 4 years ago

@adjie46 Yes. The code is updated but binaries has not been added as release that's why there is this confusion. I will release a version soon. Once I am done reviewing all PRs.

vasani-arpit commented 4 years ago

Resolved in latest release.