adspace


How can I read test data from excels?

Answer Posted / Ishaan Pandey

Test data from Excel files can be read in Selenium using libraries like Apache POI or JXL (Javascript API for Excel).nFor example, with Apache POI:
1. Add the poi and poi-ooxml dependencies to your project.
2. Read the excel file using WorkbookFactory and XSSFWorkbook classes.
3. Access the data from the sheet and cells as needed.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know how to locate a link using its text in selenium?

993


What’s selenese?

923


Have you created any framework?

1045


what will be the first salary and what will be the hike in the salary?

935


How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

1202