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("..."));
boolean isEncrypted = input.getAttribute("type").equals("password");

You'll need to replace the ... with the exact value of the password input box ID.

Need Your Help

What is the correct way to prevent caching on ajax calls?

jquery ajax caching

I have an AJAX-call, which returns values from a ever changing database, based on simple standard parameters, like month of year. In IE, this function returns cached data, which it never should. I've

How do I properly execute an Async Method in MVC? threadpool

How do I execute an asynchronous method from within a controller method and return an HttpStatusCodeResult(200), without the async delegate prematurely terminating its execution?