What do I need to do if drop down take time to populate 1st element from drop down list?
Select Cdropdown = new Select(driver.findElement(By.xpath("//select[@id='ClientId']"))); Cdropdown.selectByVisibleText("centralpen-ak-01"); Thread.sleep(3000); Select Edropdown = new Select(driver.findElement(By.xpath("//select[@id='EnvironmentId']"))); Edropdown.selectByValue("1121");
For loading the drop down it should take the time I have used-
Thread.sleep(3000); but still the element is not found. What should I do in such a case?