I have scenario where in i want to read values from excel and put into username and password field, later want to verify whether username and password got entered in the are proper by comparing with Excel values.

Below is sample code given w.r.t to "gmail".
HTML Code:

```
<input type="password" name="Passwd" id="Passwd">

```

Webdriver Code:

```
Driver.driver.get("https://www.gmail.com");
Driver.driver.findElement(By.name("Passwd")).sendKeys("mahesh");
    System.out.println(Driver.pFLogin.getTxtPassword().getAttribute("value"));

```

Getting error for above code, since password field dont have "value" attribute

Kindly help me on this.. 

Thanks
Mahesh