How to use a snapshot captured by the spy?
Posted: Thu Sep 09, 2010 8:47 pm
I'm writing a branding test and I want to compare our logo with what’s shown in the browser.
I’ve used the spy to locate the logo and added to my repository.
I right-clicked on this repository item and chose "Caputure a sceen shot" and I now have a logo child element
I imagine the snapshot persists over time 'till I change it, so my test should simply call
Ranorex.Imaging.Compare( repo.logo, repo.logo.snapshot) and pass when they are the same.
But that doesn’t work.
What’s the right way to do this?
I’ve used the spy to locate the logo and added to my repository.
I right-clicked on this repository item and chose "Caputure a sceen shot" and I now have a logo child element
I imagine the snapshot persists over time 'till I change it, so my test should simply call
Ranorex.Imaging.Compare( repo.logo, repo.logo.snapshot) and pass when they are the same.
But that doesn’t work.
What’s the right way to do this?