ustomaization of FLB(Fighting Layout Bugs)

28 views
Skip to first unread message

varun kumar

unread,
Nov 4, 2011, 9:46:15 AM11/4/11
to Fighting Layout Bugs
Hi all,

I am attempting to customize the FLB to save the screen shots with
particular naming convention.

The naming convention is URL+DATE+BUG DESC and i want to store these
screen shots to a specific folder.




Any help on how to do it will be appreciated




Thanks in Advance
Varun Ponugoti.

TheoLag

unread,
Sep 11, 2014, 4:57:31 PM9/11/14
to fighting-l...@googlegroups.com

you can set up the save folder  by using the setScreenshotDir method  
here is an example 

try { 
WebPage webPage = new WebPage(driver);
FightingLayoutBugs flb = new FightingLayoutBugs();
File screenshotDir = new File("c://");
flb.setScreenshotDir(screenshotDir);
final Collection<LayoutBug> layoutBugs = flb.findLayoutBugsIn(webPage);
System.out.println("Found " + layoutBugs.size() + " layout bug(s).");
for (LayoutBug bug : layoutBugs) {
System.out.println(bug);
}
} catch (Exception e) {
e.printStackTrace();
} finally {
Reply all
Reply to author
Forward
0 new messages