WebElement interface provides Clear method, which clears the data entered in textbox (or) textarea. Following is the signature of clear method.
void clear();
This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here