I am using capture Bitmap () to compare but the comaprison always fails if the test is run on different machine. It appears to be the difference in the width of the object when comparing. How can I resolve the issue? Someone please help? Thanks.
I try to avoid bitmap comparison whenever possible for exactly this issue, its not portable. You need to use the same monitor / graphics cards / resolutions / colour profile and so on otherwise it will fail. Using verifications will help as you can simply update the saved bitmap the first time you run the test on the new machine.