title: Data driven not working in webdriver/java
body: <p>I've tried till here, but unable to think how to call cell content in the below code, to register under a site : <a href="http://newtours.demoaut.com/mercuryregister.php" rel="nofollow">http://newtours.demoaut.com/mercuryregister.php</a></p>
  
  <pre><code>public class DataDriven {
      static WebDriver driver=new FirefoxDriver();
      public static void openurl() throws InterruptedException{
          driver.get("http://newtours.demoaut.com/");
          driver.wait(100);
          driver.manage().window().maximize();
      }
  public static void register() throws Exception{
      FileInputStream fi=new FileInputStream("E:\\datadriven.ods");
      Workbook wb = Workbook.getWorkbook(fi);
      Sheet sh=wb.getSheet(0);
      driver.get("http://newtours.demoaut.com/");
      driver.wait(100);
      driver.findElement(By.xpath("html/body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[2]/td/table/tbody/tr/td[2]/a"));
      driver.wait(100);
  
  }
  
  public static void getCelldata(){
      Cell=
  }
  </code></pre>