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:
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?
Code:
WebDriver driver = new Augmenter().augment(smartClientWebDriver); File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);
So I think this doesn’t work with SmartClientWebDriver. Is there any way to do a screen capture with SmartClientWebDriver?
Comment