sukanya meruva Answered question
We can clear text from an input box using the clear() method in Selenium with Java.
The following example demonstrates its usage:
WebDriver driver = new ChromeDriver();
// Locate the input element using XPath (use the correct XPath expression for your element)
WebElement element = driver.findElement(By.id(“inputElementId”));
// Clear the text inside the input box
element.clear();
sukanya meruva Answered question