LambdaTest Community

Find answers, support, and inspiration from other users

Questions
LambdaTest Community
Answered

how to delete default values in text field using selenium?

I want to delete a default value of a textbox to enter the new value, but I am not getting how to do that.

I was thinking to use CTRL+a and then Delete but I'm not sure how to do this.

I even used WebDriver's command driver.findElement("locator").clear();

Up Vote Down Vote 0 Votes
Posted 5 months ago

Answers


If you're looking for a solution from Selenium RC, you can use simply

// assuming 'selenium' is a healthy Selenium instance
selenium.type("someLocator", "");
Up Vote Down Vote 0 Votes
Posted 5 months ago
361 Views
1 Answer
5 months ago
Similar posts