WebElement article = driver.findElements(By.cssSelector(".test li[name='article']")).get(2);
Like this. Try using an IDE to understand API misuasage problems easier and faster. By.cssSelector() returns an instance of By, you pass that to findElements which returns an instance of List, on that you can call .get(index) to get a specific element.