我正在使用以下内容在文本框中输入文本:
driver.findElement(By.xpath("//input[@name = 'c_1']")).sendKeys("Test");
HTML:
<div id="ext-comp-1110" class=" x-panel criterion-block" style="width: 252px;">
<div id="ext-gen397" class="x-panel-bwrap">
<div id="ext-gen398" class="x-panel-body x-panel-body-noheader" style="width: 252px;">
<div id="ext-comp-1111" class=" x-panel criterion-label">
<div id="ext-gen413" class="x-panel-bwrap">
<div id="ext-gen414" class="x-panel-body x-panel-body-noheader">
<label id="ext-comp-1112">Insured Name contains:</label>
</DIV>
</DIV>
</DIV>
<input id="ext-gen186" class=" x-form-text x-form-field criterion " type="text" name="c_1" autocomplete="off" size="20" style="width: 222px;" title="">
</DIV>
</DIV>
当我运行它时,我得到一个元素不可见的异常。