WaitforElementVisible is not working and Unable to get text using WebUI.getText


#1

TestObject Obj1 = new TestObject("")
Obj1.addProperty(“xpath”, ConditionType.EQUALS,"//table//tbody/tr’["+ i +"]’/td[1]")

String z = WebUI.getText(findTestObject(Obj1))


#2

#3

2018-12-28 10:37:32.028 e[1;31mERRORe[0;39m e[36mk.k.c.m.CustomKeywordDelegatingMetaClass -e[0;39m e[31m❌ groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.testobject.ObjectRepository.findTestObject() is applicable for argument types: (com.kms.katalon.core.testobject.TestObject) values: [TestObject - ‘’]e[0;39m
e[31mPossible solutions: findTestObject(java.lang.String), findTestObject(java.lang.String, java.util.Map)e[0;39m
2018-12-28 10:37:32.111 e[1;31mERRORe[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor -e[0;39m e[31m❌ createNewProject.NewProject.AddNewProject(AddCountry) FAILED.e[0;39m
e[31mReason:e[0;39m
e[31morg.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.testobject.ObjectRepository.findTestObject() is applicable for argument types: (com.kms.katalon.core.testobject.TestObject) values: [TestObject - ‘’]e[0;39m
e[31mPossible solutions: findTestObject(java.lang.String), findTestObject(java.lang.String, java.util.Map)e[0;39m
e[31m


#4

I see it now. Trythis:

TestObject Obj1 = new TestObject("")
Obj1.addProperty(“xpath”, ConditionType.EQUALS,"//table//tbody/tr’["+ i +"]’/td[1]")

String z = WebUI.getText(Obj1)

#5

Thanks Its working


#6

Hi,

Is there any possibility of editing the csv file inside katalon studio itself after creating it

Thanks,
Nikhil