Philips Interview Question

How to select and print the second last value from dropdown?

Interview Answer

Anonymous

Jun 7, 2016

int count = driver.findElements(By.xpath("//select[@name='dropdownmenu']//option")).size(); System.out.println(count); for(int i=0;i