Question: how to copy data from one excel to another using selenium?
Answer: getSheetName(i); XSSFSheet outputSheet=outputWorkbook. createSheet(inputSheetName); // Create and call method to copy the sheet and content in new workbook.