Dear Ranorex support team,
I am using an application which, when i click on a button called "settings", results in a settings window appearing from the right hand side of the screen. By default, the settings window is hidden off on the right hand side of the screen prior to the settings button being clicked. I am trying to create a test module that validates that this settings window does indeed appear from the right hand side of the screen when a user clicks on the settings button.
I have tracked the settings window using spy and then created a step in my recording to validate that it exists after the user clicks on the settings button. However, this is not a valid test as the window always exists....its just that its hidden from view and only becomes visible when the user clicks on the settings button. So such a test will always pass, even in cases where the window does not appear which is not what I want.
I've also tried a 'compare image' based validation. What i did was take a screenshot of something on the settings window in the hope that the validation would fail when the window was hidden i.e. in a different location to where it is when it's visible. But the image based validation passes, even when the settings window is not visible on the screen. Can you confirm why a 'compare image' based validation would pass in these circumstances?
More importantly, can you confirm if there are any other methods i should try that would result in a successful test? A successful test would be the validation passing if the settings window appears but failing if the settings window does not appear. The Xpath for the window is the same whether it is visible or hidden off to the right hand side. The only difference I can see is that the screen location values are different in the 'layout' section in spy. These values are greyed out so I'm not sure if it's possible to include these values in the path. Can you confirm please?
Let me know if you need any more information.
Many thanks,
Martin