Trying to post a comment on an Instagram post using Selenium in Java. The Instagram Comment box is in a textArea
. How can I successfully add a comment?
My attempted solution was...
WebElement cmdbox = driver.findElement(By.tagName("textarea"));
cmdbox.clear();
Thread.sleep(2000);
cmdbox.sendKeys("sample text");
Thread.sleep(3000);
Encountered the following error