현재 selenium webdriver
에서 작업 중입니다. 여러 개의 드롭 다운을 선택하려고하는데 필터 선택 항목입니다. 일단 내가 여러 드롭 다운을 선택하면 적용 필터 버튼을 누른 다음 선택한 필터 섹션을 기반으로 결과를 생성합니다. 그래서 여러 드롭 다운을 선택하는 데 문제가 발생하여 클릭 할 수 없습니다 필터 적용 드롭 다운. 이 코드를 사용하는 방법을 알아 내려고 도와주세요.셀렌 웹 드라이버를 사용하여 여러 개의 드롭 다운 선택 방법
driver.findElement(By.id("ext-new-prs")).click();
new Select(driver.findElement(By.id("visualizationId"))).selectByVisibleText("Center");
new Select(driver.findElement(By.id("periodId"))).selectByVisibleText("Last 52 Weeks");
new Select(driver.findElement(By.id("topographyId"))).selectByVisibleText("Center");
driver.findElement(By.cssSelector("#topographyId > option[value=\"center\"]")).click();
new Select(driver.findElement(By.id("centerId"))).selectByVisibleText("OAB");
new Select(driver.findElement(By.id("featureRequestId"))).selectByVisibleText("Include");
driver.findElement(By.id("kpiFilterSubmit")).click();
및 HTML –
org.openqa.selenium.ElementNotVisibleException : 요소가 현재 보이지 않으므로 상호 작용할 수 없음 명령 길이 o r timeout : 16 밀리 초 – Amirdha
driver.manage()를 추가하는 경우 timeouts(). implicitlyWait (30, TimeUnit.SECONDS); 동일한 오류가 발생하고 있습니다. – Amirdha