title: read username and password from the excel file
body: <p>Below is my code.  How can I read this data?</p>
  
  <pre><code>import java.io.File;
  import java.io.FileInputStream;
  
  import org.apache.poi.hssf.usermodel.HSSFCell;
  import org.apache.poi.hssf.usermodel.HSSFRow;
  import org.apache.poi.hssf.usermodel.HSSFSheet;
  import org.apache.poi.hssf.usermodel.HSSFWorkbook;
  import org.apache.poi.ss.usermodel.Workbook;
  import org.apache.poi.xssf.usermodel.XSSFCell;
  import org.apache.poi.xssf.usermodel.XSSFRow;
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.firefox.FirefoxDriver;
  
  
  public class Yoda {
  
      public static void main(String[] args)
  
       {
      // Launch FireFox
      WebDriver driver = new FirefoxDriver();
  
      //Enter YODA URL
      driver.get("https://q1yda1m2.madc.att.com:20621/YodaGUI/index.jsp");
  
      //Enter UserID
      driver.findElement(By.name("userid")).sendKeys("xx3517");
  
      //Enter Password
      driver.findElement(By.name("password")).sendKeys("123123a");
  
      //Click on Submit button after entering User ID and Password
      driver.findElement(By.name("btnSubmit")).click();
  
      //Click on Remind Me later
      driver.findElement(By.name("successOK")).click();
  
      //Click on Search Button on YODA home page
      driver.findElement(By.className("MenuBarItemSubmenu")).click();
      driver.findElement(By.xpath("//*[text()='Fulfillment Details']")).click();
      driver.findElement(By.name("location")).sendKeys("Q400");
      driver.findElement(By.name("activity")).sendKeys("OY");
      driver.findElement(By.name("orderID")).sendKeys("3955349");
      driver.findElement(By.id("fulfillment_submit")).click();
      }
  
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/wvo9S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wvo9S.png" alt="enter image description here"></a></p>