Skip to content

Comments

Fix: Use send_keys to send messages#3

Merged
rohanrlobo merged 1 commit intomainfrom
fix/whatsapp-message-sending
Dec 4, 2025
Merged

Fix: Use send_keys to send messages#3
rohanrlobo merged 1 commit intomainfrom
fix/whatsapp-message-sending

Conversation

@google-labs-jules
Copy link

This change fixes a bug in the WhatsApp message sending functionality by replacing the unreliable URL-based message sending with a more robust method that uses send_keys to type the message into the chatbox. It also includes a new unit test to verify the fix.


PR created automatically by Jules for task 7228117086399402152 started by @rohanrlobo

This commit fixes a bug in the message sending functionality.

The previous implementation used URL encoding to pre-fill the message, which is unreliable and can fail if WhatsApp changes its URL structure.

This commit changes the implementation to:
- Use a more robust XPath selector to find the message box.
- Use the `send_keys` method to type the message into the message box.
- Clicks the send button.

A new unit test has been added to verify this functionality.
@google-labs-jules
Copy link
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

@rohanrlobo rohanrlobo marked this pull request as ready for review December 4, 2025 07:56
@rohanrlobo rohanrlobo merged commit c35eca5 into main Dec 4, 2025
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

Successfully merging this pull request may close these issues.

1 participant