No execution of the mousse click in a popup

Ranorex Spy, Recorder, and Studio.
ayat
Posts: 16
Joined: Thu May 12, 2016 9:23 pm

No execution of the mousse click in a popup

Post by ayat » Sat May 21, 2016 12:44 pm

Hello,

I have a problem when running a test case that control the entry of required fields in a desktop app developped with .net framework 4.5

My test case triggers the display of a popup in front while two other screens are open in the background.

When recording, I click on the submit button to close the popup but at runtime, the mouse click action does not apply and in the report that error is not covered.

I used the validate action with EnsureVisible function as mentioned in the link http://www.ranorex.com/forum/modal-wind ... t2778.html

I still have the same problem, the click does not apply and he puts in the background popup and spend a lot of time looking for the next item and the test case stops.

Thank you,

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

Re: No execution of the mousse click in a popup

Post by odklizec » Sun May 22, 2016 8:32 am

Hi,
ayat wrote: I still have the same problem, the click does not apply and he puts in the background popup and spend a lot of time looking for the next item and the test case stops.
If I understand what you said here right, the popup window is somehow moved to background at a time of supposed click/ensure visible? Could it be possible that the element, which is supposed to be clicked in popup, is available also in the main window? In other words, that there are two elements for given xpath? This would explain why there is not clicked the element in popup and why the popup is moved to background. If there are multiple elements found for given xpath, Ranorex always clicks the first one in the list of found elements. Just try the xpath in spy, while both main and popup window is open.
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

ayat
Posts: 16
Joined: Thu May 12, 2016 9:23 pm

Re: No execution of the mousse click in a popup

Post by ayat » Sun May 22, 2016 10:18 pm

Hi,

Finally, I replaced EnsureVisible by Validate (exists) followed by the mousse clic action, and it worked well.


Thank you,