I am getting the following exception while running a TestNG test.
- all JavaScript animations have been stopped,
- all animated GIF images have been hidden,
- all elements potentially containing animation (like Java Applets, Flash Movies, videos, and iframes) are ignored.
- all CSS animations have been paused, and
- all CSS transitions have been disabled.
Analysis is stopped, so you don't get false alarms.
Here is my test code(I am using 32bit chrome driver for windows)
package com;
import java.util.Collection;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.LoadableComponent;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.googlecode.fightinglayoutbugs.FightingLayoutBugs;
import com.googlecode.fightinglayoutbugs.LayoutBug;
import com.googlecode.fightinglayoutbugs.WebPage;
public class FightingLayoutBugsSample {
WebDriver driver;
@Test
public void fighttingLayoutBugsTest()
{
System.setProperty("webdriver.chrome.driver", "Chromedriver.exe");
driver = new ChromeDriver();
WebPage webpage = new WebPage(driver);
FightingLayoutBugs flb = new FightingLayoutBugs();
flb.enableDebugMode();
Collection<LayoutBug> allBugs = flb.findLayoutBugsIn(webpage);
System.out.println("count"+allBugs.size());
for(LayoutBug bug:allBugs)
{
System.out.println(bug.toString());
}
driver.quit();
}
}