Page 1 of 1

display variables in variables

Posted: Fri Nov 30, 2018 6:08 pm
by maamer
hello,
iam new to this technology, iam trying to store the web elements in variables and display them in the report . how do i do it?

Re: display variables in variables

Posted: Fri Nov 30, 2018 9:23 pm
by Support Team
Hi Maamer,

I will be happy to assist you with this issue. From the looks of it, you are doing things the hard way (which will also require higher maintenance over time). It is recommended to only go into code if needed. 95% of the time, you can do everything in a simple recording module (which has a ton of benefits over using custom code). A recording module is just beautified code with a lot of enhancements and you can always view/edit the code in a recording module if needed. I highly recommend going through our various resources linked below if you have not done so already and try to create your test cases in standard recording modules. If you have any trouble with this, please let us know as we will be happy to help. Nonetheless, if you wish to continue with your code, continue reading. Currently, you only have the element itself, hence why the report is printing [Ranorex.Core.Element]. You must get the attribute value of the card_Bal element. To get the attribute value, you can use the following method. I hope this helps!

Cheers,
Ned