Through selenium. how to delete contents from textbox.
I have to delete the last 2 characters from text box using selenium command.
Ex.ABCD to AB.
The keyPress event of selenium can be helpful:
selenium.sendKeys("text1", "ABCD"); selenium.sendKeys("text1", "\b"); selenium.sendKeys("text1", "\b");
This will Click Backspace key twice.