I read somewhere in Redstone’s website saying sth like this:
“Eggplant does not rely on UI elements remaining in the same location but instead uses advanced searching algorithms to scan the screen of the other computer for the element you want to interact with. Changing the screen resolution just changes the number of screen pixels that are used to display each image pixel; the actual images normally do not change.
So changing screen resolution does NOT break the test.”
I recorded my test in 1260x1024 and executed my test in 800x600. My test is considered passed if the desired screenshot appears at the end of the run. My test didn’t pass as expected.
Eggplant failed to find my desired screenshot. The desired screenshot when recorded in 1260x1024 appears in the middle of the screen. When I ran it on 800x600, the same screenshot now has been moved down a bit. It no longer stays at the same position as it is. From Image Doctor, it showed me 2 different rectangles, the original one and the one that I see finally.
I’m a bit confused now. Shouldn’t it be able to pass if I change my screen resolution? Can you please advice so that I can create my test in such a way that it won’t be affected a change on screen resolution?
Thank you very much.