Selenium: clear input field before sending keys

Last updated on:

When you fill up any type of form, before you sendKeys(), make sure that input field is clear, by performing next:

 driver.findElement(By.id("username").clear();
View Comments

Leave a Comment

Use markdown or basic HTML and be nice.