To automatically send whatsapp messages in a loop through WhatsAppWeb using selenium
1) Python 2.7
2) Selenium : sudo pip install selenium
3) WebDriver :
http://chromedriver.storage.googleapis.com/index.html?path=2.21/ https://sites.google.com/a/chromium.org/chromedriver/downloads
var textArea = $x("//div[@contenteditable='true']")[1];
var text = 'Test';
new Array(50).fill(0).forEach(() => {
textArea.innerText = text;
textArea.dispatchEvent(new InputEvent('input', {bubbles: true}))
document.querySelector("#main > footer > div._ak1k._ahmw.copyable-area > div > span:nth-child(2) > div > div._ak1r > div._ak1t._ak1u > button").click()
})