When incorrect value is entered in textbox next hint is appeared:
HTML:
<form action="/login" method="post" class="form-horizontal"> <input type="hidden">
<div class="form-group form-group-withLabel">
<input type="email" name="_username" id="inputEmail" required="" autofocus="" autocomplete="off">
<label for="inputEmail" class="inner-label">Email address</label>
</div>
<div class="form-group form-group-withLabel">
<input type="password" name="_password" id="inputPassword" placeholder="Password" required="">
<label class="inner-label" for="inputPassword">Password</label>
</div>
</form>
I need to get text from this hint.
I have tried to used:
Alert alert = driver.switchTo().alert()->getText();
but it did not help.
How to get text from such hints?