whatsplay / whatsapp-play

Command line software through which you can play with your WhatsApp. It is having different options to play with your WhatsApp like message blast, online tracking, whatsapp chat..
MIT License
405 stars 217 forks source link

Can't Attach Any File #426

Open badarulaa opened 3 years ago

badarulaa commented 3 years ago

Hello.

When i try running chat using terminal, and run command #_FILE, why always appear this problem

No node found for selector: #main > header > div > div > div > span > div > div > ul > li:nth-child(3) > button File "/home/badar/GitHub/whatsapp-play/wplay/utils/io.py", line 52, in send_file await page.click(whatsapp_selectors_dict['choose_file']) File "/home/badar/GitHub/whatsapp-play/wplay/terminal_chat.py", line 86, in chat await io.send_file(page) File "/home/badar/GitHub/whatsapp-play/wplay/main.py", line 165, in get_and_match_args await terminal_chat.chat(args.target) File "/home/badar/GitHub/whatsapp-play/wplay/main.py", line 209, in main await get_and_match_args(parser) File "/home/badar/GitHub/whatsapp-play/wplay/main.py", line 216, in asyncio.get_event_loop().run_until_complete(main())

thank you for advance

rpotter12 commented 3 years ago

Hi @badarulaa, this error is caused because whatsapp changes their whatsapp-web HTML format after every few months. So the selector used in this software is older one. To fix this error we need to update the selectors.

badarulaa commented 3 years ago

Hi @badarulaa, this error is caused because whatsapp changes their whatsapp-web HTML format after every few months. So the selector used in this software is older one. To fix this error we need to update the selectors.

Well i see, so we need to search which one a new selector, right ?

rpotter12 commented 3 years ago

Yes, we need to inspect(ctrl + shift + i) on whatsapp-web and update the selectors in https://github.com/whatsplay/whatsapp-play/blob/master/wplay/utils/helpers.py

gurpreet24112004 commented 2 years ago

Where can we attach the file of numbers