Normal text is detected as Overlapped Text

64 views
Skip to first unread message

J Crown

unread,
Dec 10, 2012, 9:09:57 PM12/10/12
to fighting-l...@googlegroups.com
Hi,

I am using "fighting-layout-bugs-0.5-jar-with-dependencies.jar" to 'DetectTextNearOrOverlappingVerticalEdge' in my application.

When the script runs on Internet Explorer, FLB marks normal text as overlapped text. But it runs fine on other browsers. Any idea how to avoid it ?

Example 1: Text within a WebElement is marked as Overlapped 



Example 2 : Text within a DropDown is marked as Overlapped 


Before closing down, I want to thank the team for hosting such a project which is very helpful.

With Regards,
J Crown

Michael Tamm

unread,
Dec 11, 2012, 2:57:34 AM12/11/12
to fighting-l...@googlegroups.com
Hi,

at least your second example looks like a known problem to me: You get false alarms, because the JavaScript, which hides all text before the edge detection algorithm is executed, does not work in older IE versions in some cases (like a drop down). And when the text can't be hidden, the border of some letters like E, l, h, d, and K is interpreted as vertical edges.

To further assist you, could you please call enableDebugMode() on your FightingLayoutBugs instance and send me the log output as well as all intermediate screenshots?

In the mean time I suggest the following work around for IE: You can prevent those falso positives if you ignore the elements like this:

TextDetector textDetector = new AnimationAwareTextDetector();
textDetector.ignore("select");
FightingLayoutBugs flb = new FightingLayoutBugs();
flb.setTextDetector(textDetector);

The argument of the ignore method is an arbitrary jQuery selector. You can call the ignore method multiple times, all given element selectors are stored in an internal list.

Another workaround should be to use IE 9.

Kind regards, Michael





2012/12/11 J Crown <jcrown....@gmail.com>

J Crown

unread,
Dec 18, 2012, 12:06:23 PM12/18/12
to fighting-l...@googlegroups.com
Hi,

I was facing this issue in IE9 only, to be more specific it is (IE9 - Win7 - 32Bit). You can get the intermediate screenshots from the link below:


I added your code textDetector.ignore("select") to the script, which fixed both the issues (although the fix was for issue2 alone). Now the result is running perfect. Thanks!

With Regards,
J Crown
Reply all
Reply to author
Forward
0 new messages