If you encounter an error where the script cannot find the send button or any similar issue, follow these steps:
- Open WhatsApp Web.
- Press
F12
to open Developer Tools. - Use the Inspect Element tool to locate the send button.
- Check how the script is identifying the button.
- The script locates the Send button using the attribute
aria-label="Send"
. - If WhatsApp Web has multiple elements with
aria-label="Send"
, the script may fail to send messages. - In this case, code refactoring is required, as there is no other workaround.
- However, if the
aria-label
text itself changes, you can easily update it without modifying the script.
- Locate the
config.ini
file in the project directory. - Update the relevant values under the appropriate section.
- This will allow the script to adapt to any changes in WhatsApp Web’s UI.
- Navigate to the Settings page from the left-hand navigation bar.
- Modify values directly within the app.
- Some values are based on
aria-label
, while others useXPath
orCSS classes
. - Ensure that you are modifying the correct selector based on how the script interacts with WhatsApp Web.
- After saving any changes in
config.ini
or through the settings page, restart the program for changes to take effect.
- Some WhatsApp Web UI elements vary by region.
- If the script fails to send messages, your region may use different class names or attributes.
- Try inspecting elements (
F12
→ Inspect) and updating theconfig.ini
file accordingly.
- The script has been tested with the current values and is working correctly as of now.
- If you experience issues, check for updates or inspect the UI for any WhatsApp Web changes.
For further assistance, feel free to report issues or contribute to improvements!