I need that string to be calculated from something earlier in the test chain. I've observed that it works if I pass a function that returns a string, rather than a string, as follows:
{
waitForCQ:
function() { return "mycomponent[title^=Edit id - " + some_id_calculated_earlier + "]"},
desc: "Verify Editor Opened to appropriate record"
}
Just checking to make sure this is supported and not something that is unintentionally possible?
{
action : 'methodCall',
methodName : 'waitForCQ',
// to be returned from function, callback will be added last
args : function() { return "mycomponent[title^=Edit id - " + some_id_calculated_earlier + "]"},
desc: "Verify Editor Opened to appropriate record"
}
but more compact. Arguments can be provided as array or returned from function.