Image Comparision failure

Ask general questions here.
sac.sharma
Posts: 4
Joined: Fri Jun 22, 2012 11:25 am

Image Comparision failure

Post by sac.sharma » Fri Jun 22, 2012 11:43 am

Hi,
While doing the image comparision for some chart image on Google Chrome browser, the Web page is getting scrolled down automatically.
The below path holds the screenshot
div[@id='h_RadSplitter3']/div/table/tbody/tr/td[@id='h_RadPane2']/div/table/tbody/tr[1]/td[1]/div[@id='h_ChartGroup_MainPanel']/table[@id='h_ChartGroup_GT0'].

Validate.CompareImage() step makes the web page scroll down and results in image comparision fails.

Please guide me if some one has faced this issue before.

Thanks,
Sachin

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Image Comparision failure

Post by Support Team » Mon Jun 25, 2012 12:53 pm

Hello Sachin,

The problem that Ranorex cannot find the image could be that the similarity factor is set too high. Please try to set the similarity factor to a lower value.
There is a similar post named Testing Bar Charts and Pie Charts where you can find a code how to set the similarity.

Regards
Bernhard
Ranorex Support Team
.
Image