title: Encountered problem to perform test case when fetching data from Excel file using KeywordDriven
body: <p>Problem I'm facing is libraries are not imported like <code>Workbook</code>, <code>Row</code>, <code>Cell</code>, <code>HSSFWork</code> etc. When i try to import its not importing.</p>
  <p>Here is link of console:  <a href="https://prnt.sc/15oajs9" rel="nofollow noreferrer">https://prnt.sc/15oajs9</a></p>
  <pre><code> public class ReusableFunction {
      WebDriver driver;
      public  String [][] fetchDataFromExcel() {
          Workbook wb = null;
          String [][] data= null;
          try {
              String path = fetchprop(&quot;KEYWORD_PATH&quot;);
              File excel = new File(path);
              FileInputStream file  = new FileInputStream(excel);
              
              System.out.println(path);
              String extn = path.substring(path.indexOf(&quot;.&quot;)+ 1);
              System.out.println(extn);
              if (extn.equals(&quot;xlsx&quot;)) {
                  wb = new XSSFWorkbook(file);
              } else {
                  wb = new HSSFWorkbook(file);
              }
              Sheet sheet = wb.getSheet(&quot;Sheet1&quot;);
              
              int rownum = sheet.getLastRowNum();
              System.out.println(&quot;Rows: &quot; + rownum);
              
              int column = sheet.getRow(0).getLastCellNum();
              
              data  = new String [rownum][column];
              
              for (int i =0; i &lt; rownum; i++) {
                  Row row = sheet.getRow(i);
                  for (int j =0;  j &lt; column; j++) {
                      Cell cell = row.getCell(j);
                      String value = cell.toString();
                      data[i][j] =  value;
                  }
              }
          } catch (Exception ex) {
              ex.printStackTrace();
          } finally {
              try {
                  wb.close();
              } catch (IOException e) {
                  e.printStackTrace();
              }
          }
          
          return data;
      }`
  </code></pre>
  <p>Can anyone have idea how we can solve this problem</p>