有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java请求

好的,我试图告诉我的java selenium程序等待所有角度类型请求完成加载,这一个很特别:

<span _ngcontent-xse-c0 class = "loading" hidden> </span

尝试以下方法:

private loading = By.xpath ("/ html / body / app-root / main / app-home-spreadsheet / spinner-app / span");

WebDriverWait waitLoading = new WebDriverWait (driver, 20); waitLoading .until (ExpectedConditions.invisibilityOfElementLocated (loading));

waitLoading.until (ExpectedConditions.not (ExpectedConditions.elementToBeClickable (loading)));

但我无法让它发挥作用,selenium ignora todas las esperas,las da por hechas,aunque el elemento aun este Presenter para selenium es como si ya hubiera pasado e e intent a ejecutar la siguiente accion,por ejempo un click

y眼este错误:

org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <mdb-select _ngcontent-jbv-c4="" class="colorful-select dropdown-primary ng-untouched ng-pristine ng-valid" formcontrolname="idClaseAportante" id="idClaseAportante" mdbvalidate="">...</mdb-select> is not clickable at point (508, 426). Other element would receive the click: <span _ngcontent-jbv-c0="" >class="loading"></span>

我将非常感谢任何帮助


共 (0) 个答案