here is my code for custom keyword
@Keyword
def getHtmlTableRows(String ClientName,int a) {
WebElement Table = driver.findElement(By.xpath("//table/tbody"))
List<WebElement> rows_table = Table.findElements(By.tagName('tr'))
int rows_count = rows_table.size()
WebUI.comment("No of table rows:"+rows_count)
for (int i = 0; i < rows_count; i++) {
String currentStep = WebUI.getText(WebUI.findTestObject(‘//table/tbody/tr/td/div/p/a’), true)) WebUI.click(WebUI.findTestObject(‘(//a[text()="’+currentStep+‘]//parent::p//parent::div//parent::td//parent::tr//td[10]/div/p/a)[’+a+‘]’, true))
WebUI.delay(5)
How to proceed?