Page 1 of 1

No execution of the mousse click in a popup

Posted: Sat May 21, 2016 12:44 pm
by ayat
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,

Re: No execution of the mousse click in a popup

Posted: Sun May 22, 2016 8:32 am
by odklizec
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.

Re: No execution of the mousse click in a popup

Posted: Sun May 22, 2016 10:18 pm
by ayat
Hi,

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


Thank you,