Getting black images with selenium.captureScreenshot

Posted by Lidia on Stack Overflow See other posts from Stack Overflow or by Lidia
Published on 2010-02-26T00:51:14Z Indexed on 2010/03/17 5:51 UTC
Read the original article Hit count: 421

Filed under:
|
|

I'm executing selenium tests with testng, that are started on a remote system with Selenium RC via hudson (with ssh connection). The remote system is windows xp with MKS Toolkit installed, hence ssh. Tests are NOT executed as a windows service.

I've tried using both captureScreenshot and captureEntirePageScreenshot methods. The first one always produces a black image. The second one creates the correct screen shot but it only works on Firefox and our tests usually pass on Firefox and fail in other browsers, so it is crucial to capture screen shots for the other browsers (mainly IE and Safari). The tests are ran in parallel, with many browser windows open at the same time. I'm not certain if this is what's causing the problem. Any thoughts will be appreciated.

© Stack Overflow or respective owner

Related posts about selenium

Related posts about testng