Alex Rivera | Logout

Selenium: delete contents from a textbox

Asked 2011-06-23T01:02:20.807
15

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.

Edit
Report

1 Answer

2

For firefox, the backspace event works only if you setCursorPosition at the END of the text in the textarea, otherwise the typeKeys event will type at the begining of the text.

answered 2012-04-06T10:14:55.890

Your Answer