alert code

Ask general questions here.
meobeou
Posts: 1
Joined: Wed Jan 09, 2019 4:38 am

alert code

Post by meobeou » Mon Jan 14, 2019 7:26 am

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
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4151
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: alert code

Post by odklizec » Mon Jan 14, 2019 9:02 am

Hi,

Well, you need to do exactly what the message says...replace FindDescendant method (everywhere in your code) with Find or FindSingle method. There is no way around. Even though the test is executing fine right now, it may stop working soon, because the method FindDescendant will be removed for good soon (if not already removed in most recent version).

BTW, I would suggest you to update Ranorex with most recent 8.3.2. Version 8.0.0 is too old and no longer supported, not to mention there were some critical bugs in it ;)
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