That was a typo in here, it’s fine in the project
There should be no leftovers if i understand you correctly
This is everything that is used related to color: ( // infront of old solution attempts)
color part in testcase:
case 'color':
WebUI.println(dat)
String action = findTestData("Testdat"+testcase+'bm').getValue("action", dat)
String detail = findTestData("Testdat"+testcase+'bm').getValue("detail", dat)
String detail2 = findTestData("Testdat"+testcase+'bm').getValue("detail2", dat)
String attribute = findTestData("Testdat"+testcase+'bm').getValue("attribute", dat)
if(action == 'select'){
CustomKeywords.'bm.colorselect.cs'(attribute, LoadTimeCorrector, step, run, device, timeStamp, product); step ++
}
if(action == 'check'){
CustomKeywords.'bm.colorcheck.cc'(detail, detail2, attribute, LoadTimeCorrector, step, run, device, timeStamp, product); step ++
}
WebUI.println(topic + action + attribute)
break
Keyword related to colorcheck:
if(detail == 'name'){
//TestObject to = findTestObject('bm/color/colorname')
//String prop = "//*[@class = '"+detail2+"']//h4[contains(text(),'"+attribute+"')]"
//to.addProperty('xpath', ConditionType.EQUALS, prop, true)
//String x = "'success'"
String name = WebUI.getText(findTestObject('bm/color/colorname', [('DETAIL2'):'P0751',('ATTRIBUTE'):'Alpine white.']))
WebUI.println(name)
WebUI.verifyElementVisible(findTestObject('bm/color/colorname'))
and the object colorname:

I seperated the color part from the rest of the test to be sure nothing is messing with it.
and for the xpath i tried different solutions so far