요소 내 XPath는이요소 내 XPath는 고유
//System.setProperty("webdriver.chrome.driver", "C://chromedriver.exe");
//WebDriver driver= new FirefoxDriver();
//WebDriver driver= new ChromeDriver();
driver.manage().window().maximize();
driver.get("https://www.goindigo.in/");
driver.findElement(By.linkText("One Way")).click();
driver.findElement(By.xpath("//button[@class='btn buttonGlbl btn-close button-trigger']")).click();
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
driver.findElement(By.xpath("//div[@class='innertab-content one-way-tab-ctnt']//li[@class='city-dropdown destination-dropdown ps-destination-dropdown without_label']//div[@class='city-dropdown-list city-name-to']//ul//li[3]")).click();
}
}//
대답 위
예를 ... 그래서 질문은 무엇인가? – Andersson
드롭 다운 목록에서 도시를 선택할 수 없습니다. 진행 방법을 모르겠습니다. – Abhishek