在字段中输入文本。线程“主要” org.openqa.selenium.ElementNotInteractableException中的异常:元素不可交互

时间:2019-12-02 13:29:58

标签: webdriver

  1. 网站上的动态ID。

site

  1. 代码段:

    WebElement menu = driver.findElement(By.xpath("//div[contains(@class,'WbForm_FillingBlock')]")).findElement(By.xpath("//div[contains(@class,'WbForm_StylePadding')]"));
    menu.sendKeys("11111");
    

  1. HTML

<div class="WbForm_FillingBlock" xpath="1">
    <label>Содержание:</label>
    <div class="Wb_Textarea Wb_FormElement_Position1 text_Content Wb_Control Wb_EditableField WbForm_Obligatory" id="wb_control_textarea_1dr390k7ko6ko98j4e1" wbtype="control_textarea">
<div class="WbForm_StylePadding">
    <textarea style="overflow-y: hidden; height: 42px;" class="WbTextarea valid" maxlength="1000"></textarea>
    <div class="btnAutocomplete"></div>
</div>
</div>
</div>


我无法绑定到元素并向其中输入数据。

Exception in thread "main" org.openqa.selenium.ElementNotInteractableException: element not interactable

0 个答案:

没有答案