appearance of password field checking using selenium webdriver

Verify the type of that password field that’s the only way to identify in html. 🙂

driver.findElement(By.id(“xyz”)).getAttribute(“type”).equals(“password”);

No images available.