I have a long string to test and sendKeys() takes too long. When I tried to set the value of the text the program crashes. I know the Selenium
sendKeys()
text
JavascriptExecutor js = (JavascriptExecutor)driver; js.executeScript("document.querySelector('attributeValue').value='new value'");