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.
Ranorex Spy, Recorder, and Studio.
3 posts • Page 1 of 1
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.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.