I have the following code in selenium web driver :
Assert.assertEquals(emailField.getAttribute("value"), email);
Assert.assertEquals(passwordField.getAttribute("value"), password);
When I inspect the element for the user name field and the password field (using firebug), I can see a "value" attribute for the user name field but not for the password field. But the code works. How is this possible?