testselenium / fighting-layout-bugs

Automatically exported from code.google.com/p/fighting-layout-bugs
Apache License 2.0
1 stars 1 forks source link

Need methods to get layout bugs by category #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Following code returns agregated collection of LayoutBugs
final Collection<LayoutBug> layoutBugs = flb.findLayoutBugsIn(webPage);

What if I want analyze only DetectInvalidImageUrls bugs?
I hadn't found methods filter only one type of bugs from overall collection.

Original issue reported on code.google.com by NIkita.M...@gmail.com on 23 Aug 2012 at 9:33

GoogleCodeExporter commented 8 years ago
If you are only interested in bugs found by `DetectInvalidImageUrls` you should 
only run this detector like this:
{{{
   // ...
   WebPage webPage = new WebPage(driver);
   DetectInvalidImageUrls detectInvalidImageUrls = new DetectInvalidImageUrls();
   Collection<LayoutBug> bugs = detectInvalidImageUrls.findLayoutBugsIn(webPage);
}}}

Original comment by michael.tamm2 on 24 Aug 2012 at 4:46

GoogleCodeExporter commented 8 years ago
Oh!!! Thanx for code example!

Original comment by NIkita.M...@gmail.com on 24 Aug 2012 at 2:30