Passing multiple variables for Row and Column of a Table

I have the following object defined for my table:

I can pass the “row” variable using:

customerName= WebUI.getText(findTestObject(‘Page_/Customer_Table’, [(‘row’) : index]))

where "Index: is a value (in this a case a For loop to go through the rows of the table).

How do I pass the second variable for the column definition? I’ve tried multiple combinations and can’t seem to pass the second variable without generating an error.

My goal is for each row to read across the columns, such as Row 1, Column 1, Column 2, Column 3


Row 2, Column 1, Column 2, Column 3.

This appears to be the more viable answer:

import org.openqa.selenium.WebDriver as WebDriver

import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory

import org.openqa.selenium.By as By

import org.openqa.selenium.WebElement as WebElement

import com.kms.katalon.core.annotation.Keyword

import com.kms.katalon.core.logging.KeywordLogger as KeywordLogger

KeywordLogger log = new KeywordLogger()

WebDriver driver = DriverFactory.getWebDriver()

WebElement Webtable=driver.findElement(“sales_dash_table”)); // Replace TableID with Actual Table ID or Xpath

List TotalRowCount=Webtable.findElements(By.xpath("//*[@id=‘sales_dash_table’]/tbody/tr"));

log.logWarning("No. of Rows in the WebTable: "+TotalRowCount.size());

// Now we will Iterate the Table and print the Values

int RowIndex=1;

for(WebElement rowElement:TotalRowCount)


  List<WebElement> TotalColumnCount=rowElement.findElements(By.xpath("td"));

  int ColumnIndex=1;

  for(WebElement colElement:TotalColumnCount)


       log.logWarning("Row "+RowIndex+" Column "+ColumnIndex+" Data "+colElement.getText());