Page 1 of 1

how to suppress code warnings ?

Posted: Mon May 21, 2018 9:53 pm
by pmaladi
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.'

Re: how to suppress code warnings ?

Posted: Tue May 22, 2018 7:17 am
by odklizec
Hi,

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.