Run findLayoutBugsIn an iframe

49 views
Skip to first unread message

ginogbr

unread,
Nov 12, 2013, 8:50:35 PM11/12/13
to fighting-l...@googlegroups.com
Hello,

Is it possible to run "findLayoutBugsIn" an iframe and not the entire webPage?  For example I have a webpage that will bring up an iframe but executing findLayoutBugsIn (webPage) will run against the whole page that initiated the iframe.

Thanks

Michael Tamm

unread,
Nov 17, 2013, 3:39:10 PM11/17/13
to fighting-layout-bugs
yes, that should be quite easy to do:

WebDriver driver = ...;
driver.navigate().to("<URL of your website>");
driver.switchTo("<ID or name of the iframe");
FightingLayoutBugs flb = new FightingLayoutBugs();
Collection<LayoutBug> layoutBugs = flb.findLayoutBugsIn(new WebPage(driver));

Kind regards, Michael

2013/11/13 ginogbr <gin...@gmail.com>
Hello,

Is it possible to run "findLayoutBugsIn" an iframe and not the entire webPage?  For example I have a webpage that will bring up an iframe but executing findLayoutBugsIn (webPage) will run against the whole page that initiated the iframe.

Thanks

--
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