vasani-arpit / WBOT

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

WBOT does not work after a refresh #279

Closed nikhilmaske-2001 closed 2 years ago

nikhilmaske-2001 commented 2 years ago

Describe the bug

  1. WBOT does not work after a refresh (Solution)
  2. WBOT does not work if we respond to the loaded whatsapp web page and WBOT is still loading in the terminal due to this. So we need to avoid using delay, instead use something which is more interactive with the chromium page,

To Reproduce Steps to reproduce the behavior for 1:

  1. Start WBOT
  2. Refresh the whatsapp web page (chromium)

Steps to reproduce the behaviour for 2:

  1. Start WBOT
  2. Respond (open/click anything) to whatsapp web page (opened in chromium) while WBOT is still loading in the terminal (Note: This might be the case that page tooks more than 10 sec and you will not be able to perform step 2)
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

vasani-arpit commented 2 years ago

We need to find an event in puppteer if there is any which could detect page refresh. Once that is triggered we will reinject the WAPI.js and other necessary files.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.