waitforExists() and Wait() understanding

Ranorex Spy, Recorder, and Studio.
Priyanshu
Posts: 26
Joined: Wed May 22, 2019 5:48 am

waitforExists() and Wait() understanding

Post by Priyanshu » Thu Oct 24, 2019 10:19 am

Hi Team,

Let me know when should I use waitforExists() and when should wait() method.

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

Re: waitforExists() and Wait() understanding

Post by odklizec » Thu Oct 24, 2019 10:46 am

Hi,

WaitForExists does exactly what it says. It pauses the execution of test, until the associated element does not exists. Once the element is found, WaitForExists exits and the test continues its run.

Where did you found Wait() method? I do not remember anything like this in Ranorex?
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

Priyanshu
Posts: 26
Joined: Wed May 22, 2019 5:48 am

Re: waitforExists() and Wait() understanding

Post by Priyanshu » Mon Nov 04, 2019 9:26 am

Sorry it was for waitforExists () and Exist()

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

Re: waitforExists() and Wait() understanding

Post by odklizec » Mon Nov 04, 2019 10:57 am

Hi,

So do you understand the difference now?
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

Priyanshu
Posts: 26
Joined: Wed May 22, 2019 5:48 am

Re: waitforExists() and Wait() understanding

Post by Priyanshu » Mon Nov 11, 2019 7:27 am

Yeah .. thanks