SyntaxFix
Write A Post
Hire A Developer
Questions
clear() didn't work for me. But this did:
clear()
input.sendKeys(Keys.CONTROL, Keys.chord("a")); //select all text in textbox input.sendKeys(Keys.BACK_SPACE); //delete it input.sendKeys("new text"); //enter new text