title: How to get all "li" elements of "ul" class in Selenium WebDriver
body: <p>I'm new to Selenium webdriver. I came across a requirement where I have to run my test which clicks on all links with in a section. Can someone help me with the Java code for this. Attached a image which shows firebug properties of that particular section.
  I have tried the below code but it returns me a null list.</p>
  
  <pre><code>public static void main(String[] args) {
  
      WebDriver driver = new FirefoxDriver();
  
      driver.get("https://dev.www.tycois.com/");
      driver.manage().window().maximize();
  
      List&lt;WebElement&gt; allElements = driver.findElements(By.xpath("html/body/div[10]/div/div[1]/div[3]/ul[1]/li[5]"));
      System.out.println(allElements);
  
      for (WebElement element: allElements) {
          System.out.println(element.getText());
          element.click();          
      }
  }
  </code></pre>
  
  <p>Thanks in advance.</p>