def data = TestDataFactory.findTestData("Data Files/RRR1") WebUI.comment("row count is ${data.getRowNumbers()}") for (row = 1; row <= data.getRowNumbers(); row++) { xpath = 'id("P40_LC_ID")' myItem = new TestObject(xpath) myItem.addProperty('xpath', ConditionType.EQUALS, xpath) WebUI.verifyElementVisible(myItem) WebUI.setText(myItem, data.getValue(1, row)) WebUI.click(findTestObject('Object Repository/Page_Form on Local LC Payment/a_Last Date of Shipment')) xpath = 'id("P40_LLCA_ID")' myItem = new TestObject(xpath) myItem.addProperty('xpath', ConditionType.EQUALS, xpath) WebUI.verifyElementVisible(myItem) WebUI.selectOptionByIndex(myItem, data.getValue(2, row)) }