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