can we check that text in password field is displayed masked?
Can we verify whether the text which is written in PASSWORD field is being displayed in masked format or not?
Here is an idea (assuming that you're using WebDriver driver):
WebElement input = driver.findElement(By.id("...")); boolean isEncrypted = input.getAttribute("type").equals("password");
You'll need to replace the ... with the exact value of the password input box ID.