-1
I have the methods clear
and sendKeys
and wanted to "colapsar"
both in one,
WebElement user = webdriver.findElement(By.id("username"));
user.clear();
user.sendKeys(username);
WebElement passw = webdriver.findElement(By.id("password"));
passw.clear();
passw.sendKeys(password);