-
Python 2.7
-
Selenium : sudo pip install selenium
-
WebDriver :
http://chromedriver.storage.googleapis.com/index.html?path=2.21/ https://sites.google.com/a/chromium.org/chromedriver/downloads
- Open https://web.whatsapp.com/ on a browser
- Open up the dev console (generally F12 key)
- Paste the following code
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.x1n2onr6.xhtitgo.x9f619.x78zum5.x1q0g3np.xuk3077.x193iq5w.x122xwht.x1bmpntp.xs9asl8.x1swvt13.x1pi30zi.xnpuxes.copyable-area > div > span > div > div._ak1r > div.x123j3cw.xs9asl8.x9f619.x78zum5.x6s0dn4.xl56j7k.x1ofbdpd.x100vrsf.x1fns5xo > button").click()
})