This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/manage-test-object.html
This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/manage-test-object.html
For Mobile testing, nothing example find object?
Iâm also curios about Mobile perspective. It seems I was only able to successfully utilize this with Mobile.verifyElementText(findTestObject()). If I try to use parameterization with Mobile.tap(findTestObject()) it unfortunately doesnât seem to work. Are there only certain keywords/types of objects that this parameterization is supported for?
In the Object Repository, make sure you set the âValueâ of the property so that Katalon knows that itâs a variable and needs to replace it, e.g. set the text
propertyâs value to ${text}
.
not able to open mobile view. Please help me out.
I am trying to pass dynamic value to a test object through a variable defined with in the script. However, script fails at verifying if object is present step unable to find it.
t = CustomKeywords.âgeneral_Keywords.gen_functions.replace_ExpectedWithActualStringâ(v_editSiteXpath, âexpectedTitleâ, v_siteFiltered)
System.out.println('t: â + t)
WebUI.verifyElementPresent(findTestObject(âPage_Sites Clarity/Sites Main Page/btn_siteEditâ, [(âxpathâ) : t]), 0)
WebUI.click(findTestObject(âPage_Sites Clarity/Sites Main Page/btn_siteEditâ, [(âxpathâ) : t]))
Where v_editSiteXpath is a script variable and v_siteFiltered is a string variable that is result of a search.
v_editSiteXpath = â//tr/td[@title=âexpectedTitleâ]//following-sibling::td/a[@name=âeditButtonâ]â
v_siteFiltered =âSite08/09/2019â
Error: e[39mUnable to find the element located by âBy.xpath: //tr/td[@title=âexpectedTitleâ]//following-sibling::td/a[@name=âeditButtonâ]â. Please recheck the objects properties to make sure the desired element is located.
Please help trouble shooting this issue so I can find objects dynamically.
Can we add all objects to repository at a time through spy feature