I'm new to Selenium/Katalon and I'm having trouble with my script. I'm getting an "unable to locate element" for my table element that I have specified.
I'm not sure if I'm referencing the wrong xpath/id, any help would be great.
Script:
WebDriver driver = DriverFactory.getWebDriver()
WebUI.waitForElementClickable(findTestObject('input'), 0)
//Locate EE ID
WebElement Table = driver.findElement(By.id("ctl00"))
List<WebElement> Rows = Table.findElements(By.className("Row"))
println('No. of rows: ' + Rows.size())
table: for (int i = 0; i < Rows.size(); i++) {
List<WebElement> Cols = Rows.get(i).findElements(By.tagName('td'))
for (int j = 0; j < Cols.size(); j++) {
if (Cols.get(j).getText().equalsIgnoreCase(ExpectedValue)) {
Cols.get(4).findElement(By.xpath('//*[@id="ctl00')).click()
break
}
}
}