Re: [rspec-users] RSpec Selenium Webdriver Html Report with Screenshots

2012-09-03 Thread David Tishkoff
Serguei Cambour wrote in post #1074435: > Just a piecec pf code to create a screen shot: > > private void takeScreenShot(RuntimeException e, String fileName) { > > File screenShot = ((TakesScreenshot) > driver).getScreenshotAs(OutputType.FILE); > > try { > > FileUtils.copyFile(scree

Re: [rspec-users] RSpec Selenium Webdriver Html Report with Screenshots

2012-09-03 Thread Javix
You can generate HTML reports with surefire, just addd the folowing to your POM file: org.apache.maven.plugins maven-site-plugin 3.1

Re: [rspec-users] RSpec Selenium Webdriver Html Report with Screenshots

2012-09-03 Thread Javix
Just a piecec pf code to create a screen shot: private void takeScreenShot(RuntimeException e, String fileName) { File screenShot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); try { FileUtils.copyFile(screenShot, new File(fileName + ".png")); } catch (IOEx