how to handle the automation created popup using winforms...

Best practices, code snippets for common functionality, examples, and guidelines.
User avatar
Nagaraj Murthy
Certified Professional
Certified Professional
Posts: 1
Joined: Wed Nov 25, 2015 8:13 am
Location: Bangalore

how to handle the automation created popup using winforms...

Post by Nagaraj Murthy » Tue Feb 23, 2016 12:09 pm

i have created a pop up window to display the data, using winforms message box but i'm not able to close the pop window. i created a Xpath using path rules but ranorex stops working in closeapplication action using path.
i also tried using keyshort-cut action [Alt+F4] but it was also not responding.
The spy tool is also not recognizing the pop window.
Nagaraj Murthy

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

Re: how to handle the automation created popup using winforms...

Post by odklizec » Thu Feb 25, 2016 8:21 am

Hi Nagaraj,

Could you please post a Ranorex snapshot of the popup in question? You can learn how to create one here:
http://www.ranorex.com/support/user-gui ... files.html
Please post also the xpath of popup you are trying to close.

My guess is that instead of "closeapplication" action, you should use "click" on button, which confirms/dismiss the popup? Close application action is typically used to close the application, not individual app windows.
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