title: Read data from csv file using java in webdriver
body: <p>How to read data of each cell in Selenium WebDriver using Java?</p>
  
  <p>I have tried with following code:</p>
  
  <pre><code>CSVReader reader = new CSVReader(new FileReader("D:/data1.csv"));
  expectedLabels = reader.readNext();
  FieldNames = reader.readNext();
  FieldValues = reader.readNext();
  </code></pre>