java - selecting input-field via placeholder - Element is not visible -
having hard time entering text credentials page on: pixiv
<div class="input-field-group"> <div class="input-field"> <input placeholder="e-mail address / pixiv id" autocapitalize="off" value="" type="text"> </div> <div class="input-field"> <input placeholder="password" autocapitalize="off" value="" type="password"> </div> </div>
i selecting field using following code id attribute not available:
driver.findelement(by.xpath("//input[@placeholder='password']"));
but unable manipulate element via sendkeys nor clear. throws following exceptions respectively:
org.openqa.selenium.elementnotinteractableexception: element not visible org.openqa.selenium.invalidelementstateexception: element not interactable , may not manipulated
there 2 elements on page use xpath. webdriver choose first element meets requirements set developer. unfortunately element want second element in dom. updating xpath more specific help:
driver.findelement(by.xpath("//div[@id='container-login']//input[@placeholder='password']"));
Comments
Post a Comment