Forum Discussion
The short answer is no. 🙂
TestComplete only knows what you would know if you were looking at the two images yourself. If they look different to you, then they will look different to TestComplete.
The way around this is to always make sure that the browser is maximized. Do that when you are taking your base images to store and do that when you are in the test and want to perform the compare.
- simonaferrara4 years agoFrequent Contributor
Could it be considered an improvement for future versions, to have the possibility to do an image comparison that adapts to the zoom of the browser?
That is... for example.. I take the benchmark with 100% of zoom, then I would like to be able to compare it also if the browser is resized.
I've understand the way around; the issue still become if the machines resolution is different, because if I maximize the browser window on a release machine (a different machine comparing to the one used for the test automation development), the test will fail if it has got a different resolution.
- jr3484 years agoContributor
I did it a few years ago with checking and clicking things on maps in .NET/desktop.
I set the size of the screen to known zoom levels before doing a comparisons. Also having reference markers of known size and reducing the zoom in steps until found using a find-image function. Once found panning the image to make it central then using that as reference for other elements being tested, eg map icons etc. It was extremely slow!
Related Content
- 8 years ago
- 5 years ago
- 12 years ago
Recent Discussions
- 16 hours ago
- 16 hours ago
- 4 days ago