tobytang1987 / fighting-layout-bugs

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

UnsupportedOperationException trying to screenshot in RemoteWebDriver #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run FLB using RemoteWebDriver

What is the expected output? What do you see instead?
It should behave as per WebDriver behaviour

What version of the product are you using? On what operating system?
<dependency>
<groupId>com.googlecode.fighting-layout-bugs</groupId>
<artifactId>fighting-layout-bugs</artifactId>
<version>0.4</version>

Windows 7 x64

Please provide any additional information below.

I'm getting the following error:

java.lang.UnsupportedOperationException: 
org.openqa.selenium.remote.RemoteWebDriver does not support taking screenshots.
    at com.googlecode.fightinglayoutbugs.ScreenshotCache.takeScreenshot(ScreenshotCache.java:251)
    at com.googlecode.fightinglayoutbugs.ScreenshotCache.takeScreenshot(ScreenshotCache.java:163)
    at com.googlecode.fightinglayoutbugs.ScreenshotCache.getScreenshot(ScreenshotCache.java:77)
    at com.googlecode.fightinglayoutbugs.ScreenshotCache.takeScreenshot(ScreenshotCache.java:144)
    at com.googlecode.fightinglayoutbugs.WebPage.takeScreenshot(WebPage.java:162)
    at com.googlecode.fightinglayoutbugs.AnimationAwareTextDetector.detectTextPixelsIn(AnimationAwareTextDetector.java:78)
    at com.googlecode.fightinglayoutbugs.WebPage.getTextPixels(WebPage.java:176)
    at com.googlecode.fightinglayoutbugs.DetectTextNearOrOverlappingHorizontalEdge.findLayoutBugsIn(DetectTextNearOrOverlappingHorizontalEdge.java:37)
    at com.googlecode.fightinglayoutbugs.FightingLayoutBugs.findLayoutBugsIn(FightingLayoutBugs.java:146)
    at com.paddypower.selenium.framework.PageValidation.checkLayoutBugs(PageValidation.java:46)

Original issue reported on code.google.com by nicegra...@gmail.com on 18 Jul 2012 at 10:51

GoogleCodeExporter commented 9 years ago

Original comment by michael.tamm2 on 29 Jul 2012 at 3:53

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r174.

Original comment by michael.tamm2 on 29 Jul 2012 at 3:56