我无法点击POP中可用的元素。但是当我做了gettext()它工作正常(即打印正确的值)。请帮助并找到截图供您参考!!!
WebElement we = driver.findElement(By.id("[objId-cell-1-0][1]"));
String sss = we.getText();
System.out.println(sss);
we.click();
HTML代码段
<span id="objId-row-0" class="aw-templates-list aw-text-normal aw-grid-row aw-row-0 aw-rows-normal aw-alternate-even ">
<span id="objId-row-0-start" class="aw-row-start " style="width:0px;"></span>
<span id="objId-cell-1-0" class="aw-item-template aw-templates-cell aw-grid-cell aw-column-1 aw-cells-normal " title="">Bulk Upload ACT 1</span>
<span id="objId-cell-2-0" class="aw-item-template aw-templates-cell aw-grid-cell aw-column-2 aw-cells-normal " title=""></span>
<span id="objId-row-0-end" class="aw-item-template aw-grid-cell aw-column-space "> </span>