Posts by João Martins • 1 point
1 post
-
-1
votes2
answers718
viewsQ: Clear() and Sendkeys() in a single method
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 =…