List val=driver.findElements(By.xpath("//div[@class='ui basic button floating item dropdown']//div//a"));

is not identifying through webdriver. But this xpath perfectly recognizing at chrome browser.


Please verify it within the chrome console with the following command:


This will show you how many elements are you getting, i know some friends uses the find by option instead of the console and they only show one by one and if it finds multiple it will fail.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.