Test object with parameter not working

I use test objects with parameters. Since the latest update of 5.7.0 build 1, it does not work any more. The documentation says the test object needs to be of type “BASIC”. The type of BASIC does not exist any more. There is XPath, Attribute and CSS. How do I create a test object with parameter now that BASIC does not exist?

The following does not work:

Object Repository/codeAttribute: xpath equals (//input[@name="linecode[]"])[${idx}]WebUI.verifyElementAttributeValue(findTestObject("code", ["idx":1]), "value", "TEST/PART", 2)Object 'Object Repository/code' is not presentWebUI.verifyElementAttributeValue(findTestObject("code", [("idx"):1]), "value", "TEST/PART", 2)Object 'Object Repository/code' is not present

The following works, but I want to use parameters to keep things easier to use:

Object Repository/code1
XPath: (//input[@name="linecode[]"])[1]
WebUI.verifyElementAttributeValue(findTestObject("code1"), "value", "TEST/PART", 2)
Object 'Object Repository/code1' has attribute 'value' with value 'TEST/PART'

I just found that you need to have the “Detect object by?” checked for parameter to work.

:slight_smile: