Cannot get a text value from a numeric cell.
Used date formatter and it didn't work out.
Converted to string as well. That too didn't work well.
if(isCellEmpty(sheet.getRow(i).getCell(j)))
{
System.out.println("Phone Number field is empty " +i +" " +j +" ================================================>");
break;
}
else {
DataFormatter formatter = new DataFormatter();
Cell cell = sheet.getRow(i).getCell(j);
String pass = formatter.formatCellValue(cell);
Thread.sleep(2000);
/*Cell cell = sheet.getRow(i).getCell(j);
double a=(double) cell.getNumericCellValue();
String n=Double.toString(a);*/
driver.findElement(Appointment.PhoneNumber).sendKeys(pass);
}
What should I do next?