Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98807

Not able to put date value from excel file into web application form

$
0
0

i am using excel file to import test data in web form. i have one field in the excel name as date and value is 12/01/2019 , but when i am using this value in selenium then i am getting below error.
error : Cannot get a STRING value from a NUMERIC cell.

My code is

String Excel_Date=sheet1.getRow(4).getCell(1).getStringCellValue();

i tried the same using getdatecellvalue still it is not working .

Date Excel_Date=sheet1.getRow(4).getCell(1).getDateCellValue();

could you please help me here .


Viewing all articles
Browse latest Browse all 98807


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>