More voters = better DZone links! Login and vote now.
By willcode4beer
via binil.wordpress.com
Published: Jul 12 2008 / 22:37
Extending Selenium to take screenshots along the way. Adds the ability to manipulate browser size and focus. Also has the ability to incorporate them into reports.
It's a little old but still relevant.
Comments
bort1002000 replied ago:
With Selenium 0.92 it is possible to take screenshots. You don't need the complete solution posted in the blog. For nearly 1,5 years this was the only solution for this problem found in the web.
Check out: http://www.agimatec.de/blog/2008/04/web20-oberflachen-testen/ (german, but code for an Maven2, Selenium, JUnit solution)
willcode4beer replied ago:
Awesome, I didn't know that.
Just found it:
http://release.openqa.org/selenium-remote-control/0.9.2/doc/java/com/thoughtworks/selenium/Selenium.html#captureScreenshot(java.lang.String)
bort1002000 replied ago:
Yes, it is a really nice feature. Especially when Selenium is running in Fullscreen mode: windowMaximize();
We use it with Maven2 and have an Apache running to access the images in the network.
ftorres replied ago:
For functional web testing in C# or VB.NET integrated with Visual Studio, check out www.InCisif.net
,
Voters For This Link (9)
Voters Against This Link (1)