Following code is the HTML of a page.
<input type="text" name="prettyTime" id="prettyTime" class="ui-state-disabled prettyTime" readonly="readonly">
The display on the page is simply a string displaying time.
In WebDriver, there is a WebElement object referring to <input> tag using
WebElement timeStamp = waitForElement(By.id("prettyTime"));
I want the value of the element (what ever is displayed on the page). I tried every WebElement getters and nothing is useful for retrieving the value that the user sees. Any help? Thanks.