How to compare two screenshots one taking by IE and other taking by firefox

90 views
Skip to first unread message

Narendra Singh

unread,
Jan 16, 2014, 9:03:39 AM1/16/14
to fighting-l...@googlegroups.com
Hi ,

can we compare two screenshots using FLB if there is no animation in application  and how to compare these two?

and PLEASE  tell me if any other way to do web page layout  comparison  and highlighting  the difference between layout


Thanks in advance

Michael Tamm

unread,
Jan 17, 2014, 3:49:28 PM1/17/14
to fighting-layout-bugs
Hi,

FLB does currently not offer any support for detecting layout bugs by comparing screenshots, sorry.

I did some experiments myself in this direction, but its really not easy, when you don't want false positives.
Nevertheless, here is some advice I can offer, if you are going to implement the comparison yourself:

1.) Hide all text first -- text is rendered differently by different browsers.
     You could use the FLB API: WebPage.getScreenshot(WITH_ALL_TEXT_TRANSPARENT)

2.) Do not try to compare entire screenshots, but only regions covered by certain HTML elements.
     To determine the coordinates and dimensions of those regions, you can use JavaScript or the WebDriver API


Kind regards, Michael



2014/1/16 Narendra Singh <narend...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Fighting Layout Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fighting-layout-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages