SyntaxFix
Write A Post
Hire A Developer
Questions
WebElement drop_down =driver.findElement(By.id("Category")); Select se = new Select(drop_down); for(int i=0 ;i<se.getOptions().size(); i++) System.out.println(se.getOptions().get(i).getAttribute("value"));