Forum Discussion

Philip_Baird's avatar
Philip_Baird
Community Expert
12 years ago

Acessing Properties of Keyword Test Object Type Variable


Hi, I have a Keyword Test that has Variable exObj of Type Object (Project language is JScript).


 


In my Keyword test I have a Log Message in which I want to Log a Property ("description") of exObj


 


In the Log Message Operation Parameters dialog for the Log Message, I can set the MessageText parameter to


 


Name: MessageText


Mode: Variable


Value: KeywordTests.Test1.Variables.exObj


 


However, I cannot access a Property from exObj, I have tried setting Value to:


 


KeywordTests.Test1.Variables.exObj.description


and


KeywordTests.Test1.Variables.exObj["description"]


 


neither of which work giving the following error when trying to OK the Edit Paramter dialog:


 


"Unknown variable container "KeywordTests.Test1.Variables.exObj"."


 


Is it possible to access a property of an Object Variable in this way, and if so, how? I have tried searching the documentation but nothing comes up.


 


Regards,


Phil Baird