Thursday, June 6, 2013

How to capture snap shot in selenium?

selenium.captureScreenshot(filename);

Captures a PNG screenshot to the specified file.
Parameters:
filename the absolute path to the file to be written, e.g. "c:\blah\screenshot.png"

No comments:

Post a Comment