how to suppress code warnings ?

Ask general questions here.
Posts: 11
Joined: Thu Aug 17, 2017 9:42 pm

how to suppress code warnings ?

Post by pmaladi » Mon May 21, 2018 9:53 pm

i am getting the below warning when I upgraded my version from 7 to 8.0.0.

but this is executing perfectly fine for now, not sure why its showing when i upgraded and how to resolve this ?

'Adapter.FindDescendant<T>(string)' is obsolete: 'This method will be removed because its usage is misleading when compared to other Find methods, which all take a RanoreXPath as argument. Instead of this method use Find or FindSingle with an explicit RanoreXPath as generated by Ranorex Spy.'

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

Re: how to suppress code warnings ?

Post by odklizec » Tue May 22, 2018 7:17 am


The only solution of your problem is replacing FindDescendant method with another Find method (e.g. FindSingle). FindDescendant is going to be removed in future versions of Ranorex, so the sooner you replace obsolete method(s), the better.
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