Pull web table rows to an excel file

Hi all,
I have an escenario to first full a web table data information and store all rows (eg: 200 rows, the numbers of rows can be dynamic) and create and excel file and put those 200 records into the excel created. That excel created will be the input (datafile - dataset) to the new testcase .

Regards,

nice,
and what is the problem? or you just want to share this scenario, or this is beginning of some HOW-TO documentation?

i have the first part now:

WebUI.openBrowser('C:\\Users\\LA\\Desktop\\test.html')
WebUI.maximizeWindow()
WebDriver driver = DriverFactory.getWebDriver()
WebElement Table = driver.findElement(By.xpath("//table/tbody"))
List<WebElement> celdas = Table.findElements(By.xpath('//table/tbody/tr/td[1]'))
int celdas_count = celdas.size()
println(('number of countries:') + celdas_count)
for (int registro = 0; registro < celdas_count; registro++) {
	'It will retrieve text from each row'
	String celltext = celdas.get(registro).getText()
	print ('country : ' + celltext)
}

Now I need the part to append the list values to an existing excel file. Do yo have any ideas?

actually yes,
basically 1st google search with “katalon write to excel” will return :
https://docs.katalon.com/katalon-studio/docs/write-data-into-excel-file-at-runtime-during-test-execution.html
and there is lot more, videos, other docs etc.