How to use the PopUp Watcher when we do not know when it will occur during execution

Ask general questions here.
premravi
Posts: 102
Joined: Tue Jan 08, 2019 1:55 pm

How to use the PopUp Watcher when we do not know when it will occur during execution

Post by premravi » Thu Aug 08, 2019 2:35 pm

Hi,

I want to handle a pop up in my application which is randomly appearing at any point of time during the execution

basically it is a "NOT RESPONDING" poop up which occurs whenever we are losing the connection with the server and nobody can predict when that can will happen
So to handle that I want to implement a functionality of Pop Up Watcher

The problem is there is no specific scenario in which the pop up occurs

So I need to make sure whenever it will occur please handle it

Please help me develop a piece of code of Pop Up watcher in a way that whenever pop up occurs it will close it

Similarly like how we have implicit wait condition

I am using Ranorex 9.1.1 version

Please help me to resolve the issue

Regards,

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

Re: How to use the PopUp Watcher when we do not know when it will occur during execution

Post by odklizec » Thu Aug 08, 2019 2:47 pm

Hi,

This is exactly what's the popupwatcher designed for. You don't have know when the popup/element appears. You must simply implement the popupwatcher at start of test (ideally, using Ranorex automation helpers) and then stop it at the end of test.

Of course, you must first create a repo element, pointing to the element you want to "catch". You should either wait for the appearance of popup window/element or somehow simulate its appearance? Then track the popup (using Track tool) and use the newly created repo element in popup watcher.
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

premravi
Posts: 102
Joined: Tue Jan 08, 2019 1:55 pm

Re: How to use the PopUp Watcher when we do not know when it will occur during execution

Post by premravi » Fri Aug 09, 2019 10:32 am

Hi,

Thanks for the solution

Please help me to understand, how to add Ranorex Automation helpers in my framework

Regards

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

Re: How to use the PopUp Watcher when we do not know when it will occur during execution

Post by odklizec » Fri Aug 09, 2019 10:42 am

Hi,

See the "Ranorex Automation Helpers" screencast, available here:
https://www.ranorex.com/resources/
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

premravi
Posts: 102
Joined: Tue Jan 08, 2019 1:55 pm

Re: How to use the PopUp Watcher when we do not know when it will occur during execution

Post by premravi » Wed Aug 28, 2019 1:34 pm

Hi,

I configured Ranorex Automation Helpers, but I not able to use it

I an trying to update it also but not able to update it

Getting error message cannot access the path

Please find the attached screenshot for reference

Regards
Attachments
Ranorex Auto helpers.png
Ranorex Auto helpers.png (21.46 KiB) Viewed 218 times

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

Re: How to use the PopUp Watcher when we do not know when it will occur during execution

Post by odklizec » Mon Sep 02, 2019 12:47 pm

Hi,

I'm afraid, I don't know what exactly is Fusion and what it does have to do with Ranorex? Please make sure Ranorex is installed on a local drive (not shared/network drive)! Also, have you tried to completely uninstall 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