I am using selenium RC to automate my project. I have executed the script using firefox. I have used selenium.CaptureEntirePageScreenshot() to take screen shot using firefox. But this method doesn't work with Google chrome. Which method should I use to capture entire page screen shot for Google chrome?
Asked
Active
Viewed 865 times
0
-
Can I ask why you are still using Selenium RC? It's deprecated. So you will only find hacks as workarounds, not official solutions. – Arran May 29 '12 at 13:19
-
So what's the alternative? I have heard about Selenium Web Driver. But I am not much aware of it. – Tasleem May 30 '12 at 07:44
1 Answers
0
Try this out.
selenium.captureScreenshot("C:/filename.png")

Asherah
- 18,948
- 5
- 53
- 72

Kanishka Choudhury
- 548
- 3
- 19
-
I tried using the above method. It takes screenshot and does not give any error. But the screenshot is of any page that gets displayed on my desktop. Not the actual screenshot that I need. – Tasleem May 30 '12 at 13:42
-
you need to keep the browser in which your test is running maximised, please try this.. – Kanishka Choudhury May 30 '12 at 14:43
-
I have tried keeping the application maximised. But the problem is that in my application the output of few screens is seen at the end of the page. I need the screenshot of the output that is displayed on page. For that every time i run the test, i have to scroll the page at the end to capture the output that is displayed below(if i am using selenium.capturescreenshot()). I want the screenshot of the complete page, the way it is seen using selenium.captureentirepagescreenshot(). Please let me know if any suggestions. – Tasleem May 31 '12 at 06:08