I wonder about how I can use selenium webdriver to find the default text of an element ? In the browser, the input field displays a default value: 'Project 1', but I cannot get this text through the method getText() of this WebElement.
<input class="title viewData" id="sprojectName" maxlength="255" name="projectName" type="text" projectinfo="1">
placeholderattribute that you are missing in your html?