Want to know the functionality of ChangeSheet method

Hello,

   I want to know about the change sheet method of ExcelData class.

As I am trying to change the sheet name runtime but it is not working nor showing any error .
Could anyone help me out.

Please refer below code snippet:

String excelPath = GlobalVariable.excelPath
ExcelData data = (ExcelData) findTestData(GlobalVariable.excelPath)
data.changeSheet(‘Sheet2’)

Thanks in advance…!!!

You can try this:
TestData td = findTestData(“Data Files/TestData/Conversations”);
td.changeSheet(“sheetName”);