JSP Selenium 오류 "StaleElementReferenceException"
·
오류 수집
Selenium사용중 비동기 처리를 한 사이트에서 크롤링할때 자주 발생하는 오류인StaleElementReferenceException에 대해 알아보자.우선 오류가 난 코드를 확인해보자.List board_list = wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.cssSelector("div.w-full > ul > li > div.postContent.py-0.font-KoPubWorldDotum"))); for (WebElement webElement : board_list) { webElement.click(); driver.navigate().back(); } 위 코드를 실행하면 StaleElementReferen..
개발자가 되고 싶은 곰
'StaleElementReferenceException' 태그의 글 목록