Hi!
Is it possible to use the same objects in 2 test cases but each test cases using different variable values?
Hi!
Is it possible to use the same objects in 2 test cases but each test cases using different variable values?
sure, you need to add parameter to their definition
eg.: definition of testObject
xpath = '//div[text()="${TEXT_PARAM}"]'
usage :
WebUI.verifyElementPresent(findTestObject('testObject',[('TEXT_PARAM'):'Text of Div']), 5)
Hello Desyerie,
this article may be helpful for you: https://www.katalon.com/resources-center/tutorials/handling-static-dynamic-test-objects/