0
有一个很难将文本输入凭据页: 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>
我使用下面的代码作为id属性是不可选择的领域:
driver.findElement(By.xpath("//input[@placeholder='Password']"));
但我无法通过sendKeys操纵元素也不清楚。 它分别抛出了以下情况除外:
org.openqa.selenium.ElementNotInteractableException: Element is not visible
org.openqa.selenium.InvalidElementStateException: Element is not currently interactable and may not be manipulated