wait method similar to WaitForDocumentLoaded() on desktop apps

Ask general questions here.
rsudhak
Posts: 112
Joined: Fri Jan 04, 2019 1:38 pm

wait method similar to WaitForDocumentLoaded() on desktop apps

Post by rsudhak » Wed Jun 17, 2020 10:11 am

Hi,

I know for web apps we have WaitForDocumentLoaded() method, do we have anything similar for desktop apps?

Thanks,
Rajee

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

Re: wait method similar to WaitForDocumentLoaded() on desktop apps

Post by odklizec » Wed Jun 17, 2020 10:15 am

Hi,

No, there is no such method for desktop apps. Basically, it should be enough to use WaitFor Exists action/method, where you can specify a repo element that should become available in case the app is fully loaded. Could you please elaborate, what exactly is your problem?
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

rsudhak
Posts: 112
Joined: Fri Jan 04, 2019 1:38 pm

Re: wait method similar to WaitForDocumentLoaded() on desktop apps

Post by rsudhak » Wed Jun 17, 2020 10:52 am

we have scenarios wherein few methods are invoked through an API, I am unable to capture the Progress dialog, so want another way to make sure that the app has completed the task, Also I was looking for something generic

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

Re: wait method similar to WaitForDocumentLoaded() on desktop apps

Post by odklizec » Wed Jun 17, 2020 11:01 am

Hi,

I'm afraid, there is no generic function for what you want. But I'm sure that there is always a way to capture the progress dialog, despite the spy cannot track it. Have you tried to capture the progress dialog with create snapshot action, directly from recording or code module? Just create the snapshot of repo element representing entire app (its main form).
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

rsudhak
Posts: 112
Joined: Fri Jan 04, 2019 1:38 pm

Re: wait method similar to WaitForDocumentLoaded() on desktop apps

Post by rsudhak » Wed Jun 17, 2020 12:14 pm

I did try creating a snapshot through the code module, but ranorex just hanged.