How to hide a method from the Recorder?

Ask general questions here.
MJesper
Posts: 38
Joined: Fri Dec 28, 2018 2:16 pm

How to hide a method from the Recorder?

Post by MJesper » Fri May 10, 2019 1:02 pm

Hi, sometimes I want a private method in the recorder's user code class and I dont want the person using the recorder to access the method. How do I do that? Thanks

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to hide a method from the Recorder?

Post by odklizec » Fri May 10, 2019 2:23 pm

Hi,

I may be wrong, but I don't think there is currently a way to hide the user code method? Even if you declare the method as private, it will still be accessible in that particular recording.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

MJesper
Posts: 38
Joined: Fri Dec 28, 2018 2:16 pm

Re: How to hide a method from the Recorder?

Post by MJesper » Fri May 10, 2019 3:23 pm

I found that if you create a base class and extend from it and use "private" then they wont be exposed to the recorder :)

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to hide a method from the Recorder?

Post by odklizec » Fri May 10, 2019 4:32 pm

Cool :) Nice to hear you’ve found a solution.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration