18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Taking screenshot in a CI context

gjeudygjeudy Members
edited November -1 in Sahi - Open Source
Hi,

We have been using selenium 2.0 and run those test with firefox on a CI context (using jenkins). We have discovered selenium 2.0 sometimes being unstable and generate spurious errors and decided to give sahi a go.

So far sahi v3.5 seem to be holding it's own pretty nicely and is much more stable than selenium 2.0 when it comes to massively AJAX applications.

However, there is the missing ((TakeScreenshot)FirefoxWebDriver).getScreenshotAsString() that is sorely missing from the sahi API. I have checked the solution proposed on this forum but it uses java.awt.Robot.

This solution does not work in a headless environment where the viewport is locked. Moreover, if the web page takes more than the current screen, java.awt.Robot will only take what is currently visible (not the whole webpage).

Let's say there is no planned support for this. Can you please provide guidelines to contribute a patch to sahi ?

Thanks,
-Guillaume Jeudy
Sign In or Register to comment.