Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Screen Capture with SmartClientWebDriver

    I was trying to find a way to capture a screen with SmartClientWebDriver. When I searched the web I found this code snippet that is supposed to be able to do a screen capture:

    Code:
    WebDriver driver = new Augmenter().augment(smartClientWebDriver);
    File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);
    However, when I do this with SmartClientWebDriver I get a class cast exception.

    So I think this doesn’t work with SmartClientWebDriver. Is there any way to do a screen capture with SmartClientWebDriver?

    #2
    We've added a "pass through" method to SmartClientWebDriver to implement the TakesScreenshot interface for you. It will be in the next nightly builds for SGWT 5.1d and SGWT 5.0p.

    Comment

    Working...
    X