Page 1 of 1

Is it possible to highlight an Element from Usercode?

Posted: Wed Aug 17, 2016 11:06 am
by Andymann
Hi everybody,

I think the question is rather straightforward. This would provide a good ways of debugging Usercode while testing various things.



Best regards,
Andy

Re: Is it possible to highlight an Element from Usercode?

Posted: Wed Aug 17, 2016 3:23 pm
by Vega
You can use the highlighter through the following steps:

1) Manually add reference to “Ranorex.Controls.dll” from the program files / Ranorex / bin folder to your project

2) Update your project to compile against .NET 4.5 or later via project settings and the “compile” tab because Ranorex.Controls library requires it.

And here is what my sample code looks like:
highlighter.png

Re: Is it possible to highlight an Element from Usercode?

Posted: Wed Aug 17, 2016 4:58 pm
by krstcs
While Vega's solution might work right now, this mechanism is NOT officially SUPPORTED by Ranorex as it is an internal API and could change at any time WITHOUT WARNING!

Use it at your own risk.

To see the full public API see this link: http://www.ranorex.com/Documentation/Ranorex/

Re: Is it possible to highlight an Element from Usercode?

Posted: Thu Aug 18, 2016 12:20 pm
by Andymann
Hey guys,

I will have a look at it.
Thanks a lot to both of you!