RunTimeException while running the test using chrome driver with FLB

47 views
Skip to first unread message

Praveen Kumar

unread,
Jan 7, 2015, 3:27:16 AM1/7/15
to fighting-l...@googlegroups.com
I am getting the following exception while running a TestNG test.

java.lang.RuntimeException: Failed to analyze https://www.google.co.in/?gfe_rd=cr&ei=9-CsVKDFJYiAoAPi5IHADw&gws_rd=ssl -- com.googlecode.fightinglayoutbugs.AnimationDetectedException: This is strange: Found animated pixels, although
- 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();
driver.get("http://www.google.com");
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();
}

}

Reply all
Reply to author
Forward
0 new messages