Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Attach Any File #426

Open
badarulaa opened this issue Jun 10, 2021 · 4 comments
Open

Can't Attach Any File #426

badarulaa opened this issue Jun 10, 2021 · 4 comments

Comments

@badarulaa
Copy link

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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
Copy link

Where can we attach the file of numbers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants