Selenium webdriver 对于waitUntilElementIsPresent(长超时,By),有时它会给出NoTouchElementException和timeout异常,主要是处理iFrame

Selenium webdriver 对于waitUntilElementIsPresent(长超时,By),有时它会给出NoTouchElementException和timeout异常,主要是处理iFrame,selenium-webdriver,webdriverwait,fluentwait,Selenium Webdriver,Webdriverwait,Fluentwait,受保护的WebElement WaitUntileElementsPresent(长超时,按){ FluentWait wait=new WebDriverWait(getDriver(),超时,轮询间隔毫秒)。忽略(NoSuchElementException.class) .withMessage(String.format(“等待元素(%s)的存在)”,by.toString()); 返回wait.until(期望的条件。元素的存在(由)); }欢迎来到StackOverflow!请为问题

受保护的WebElement WaitUntileElementsPresent(长超时,按){ FluentWait wait=new WebDriverWait(getDriver(),超时,轮询间隔毫秒)。忽略(NoSuchElementException.class) .withMessage(String.format(“等待元素(%s)的存在)”,by.toString()); 返回wait.until(期望的条件。元素的存在(由));
}

欢迎来到StackOverflow!请为问题添加更多的上下文。另外,将代码段添加到代码块中。谢谢