driver.findElement(By.linkText("This is a link")).click(); // Click on the textbox and send value driver.findElement(By.id("fname")).sendKeys("JavaTpoint"); // Clear the text written in the textbox driver.findElement(By.id("fname")).clear(); // Click on the Submit button ...