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

sendwhats_image does not attach image and send it #315

Open
snehashukla29 opened this issue Feb 6, 2024 · 1 comment · May be fixed by #316
Open

sendwhats_image does not attach image and send it #315

snehashukla29 opened this issue Feb 6, 2024 · 1 comment · May be fixed by #316
Labels
bug Something isn't working

Comments

@snehashukla29
Copy link

Description

The pywhatkit sendwhats_image function redirects to send_image function in the core module. As of reporting this bug, the function does not attach the image or send it along with the caption - even though the caption is typed in the whatsapp textbox on screen.

To Reproduce

call sendwhats_image function with the required parameters

Version Information

  • OS: MACOS 13.5.2
  • Browser: Firefox
  • Python: 3.12.1
  • PyWhatKit: 5.3
@snehashukla29 snehashukla29 added the bug Something isn't working label Feb 6, 2024
@snehashukla29
Copy link
Author

The send_image function in the core module already uses the click() function from pygui to find the text box in which the text is getting typed. I have reused the same to find the textbox again before pasting the image. The current implementation was using the findtextbox() method which was internally using pygui to locate an image on screen which it could not find.

Please let me know if this approach seems right. This has been tested on MacOs with Firefox to be working for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant