当我们在屏幕上没有等待的时候
<div id="divWait" style="cursor: wait; position: absolute; left: 0%; top: 0%; background: transparent; padding: 3px; width: 100%; height: 100%; display: none;">
但是当等待部分正在进行时,显示部分消失了,因此变成了:
<div id="divWait" style="cursor: wait; position: absolute; left: 0%; top: 0%; background: transparent; padding: 3px; width: 100%; height: 100%;">
我添加的代码段:
WebDriverWait w =new WebDriverWait(driver,10);
w.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath("div//[@id='divWait']").getAttribute("disabled")));
但是没用
我们可以等待直到display
属性不存在
似乎您很近。要等待将属性[[display: none