Skip to content

Conversation

@rohanrlobo
Copy link

No description provided.

google-labs-jules bot and others added 20 commits December 3, 2025 17:34
This commit introduces a new Python application that automates sending personalized WhatsApp messages from an Excel file.

The application includes the following features:
- A file dialog to select the Excel file with contact information.
- The ability to read contact data from an Excel file.
- Automation of WhatsApp Web using Selenium to send messages.
- Personalization of messages using placeholders.
- A random delay between messages to reduce the risk of being banned.
- A log file to track the status of each message.
- Automated management of the ChromeDriver.
- A detailed README with setup and usage instructions.
This commit packages the WhatsApp automation application into a tar.gz
archive for easy distribution. It also includes instructions for
users on how to publish the application to a new GitHub repository.
Package WhatsApp Automation Application
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.
Adds the requirements.txt file to the whatsapp_automation directory to specify project dependencies.
This commit enhances the error logging functionality of the script.

The `send_whatsapp_message` function now returns a tuple containing a boolean for success/failure and a status message. This allows for more detailed, human-readable error messages to be logged in `message_log.csv`.

The main loop has been updated to handle this new return format and log the appropriate status message.

The unit tests have been updated to reflect these changes, including a new test case to verify that failures are handled and logged correctly.
This commit enhances the error logging functionality of the script and resolves merge conflicts.

The `send_whatsapp_message` function now returns a tuple containing a boolean for success/failure and a status message. This allows for more detailed, human-readable error messages to be logged in `message_log.csv`.

The main loop has been updated to handle this new return format and log the appropriate status message.

The unit tests have been updated to reflect these changes, including a new test case to verify that failures are handled and logged correctly.

This commit also resolves merge conflicts that arose from other changes being made to the codebase.
This commit enhances the error logging functionality of the script and resolves merge conflicts.

The `send_whatsapp_message` function now returns a tuple containing a boolean for success/failure and a status message. This allows for more detailed, human-readable error messages to be logged in `message_log.csv`.

The main loop has been updated to handle this new return format and log the appropriate status message.

The unit tests have been updated to reflect these changes, including a new test case to verify that failures are handled and logged correctly.

This commit also resolves merge conflicts that arose from other changes being made to the codebase.
…olved

Feat: Add detailed error logging and resolve conflicts
This commit adds a comprehensive test suite to the project.

The test suite now includes test cases for:
- Successful message sending
- Handling of timeouts when sending messages
- Automatic phone number formatting
- Reading valid Excel files
- Handling of missing Excel files

This expanded test suite provides greater confidence in the reliability and robustness of the application.
This commit adds a comprehensive test suite to the project and resolves all merge conflicts that arose during development.

The test suite now includes test cases for:
- Successful message sending
- Handling of timeouts when sending messages
- Automatic phone number formatting
- Reading valid Excel files
- Handling of missing Excel files

All merge conflicts have been manually resolved by combining the incoming changes with the new test suite, and the final code has been fully tested to ensure correctness.
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