We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
I'm getting blank page while using page.PagePicture method. Kindly help.
Function TakeFullScreenshot(page) Dim screenshot screenshot = Project.Variables.REPORTPATH&"\\" & aqConvert.DateTimeToFormatStr(aqDateTime.Now(), "%m%d%Y_%H%M%S") & ".jpg" page.PagePicture().SaveToFile screenshot TakeFullScreenshot = screenshot End Function
Hi,
Just to be on the safe side: does the page exist and is rendered in the browser when you are taking screenshot?
Can you provide a code snippet that calls TakeFullScreenshot() function?
Hi,
You can access the web page from your test using the following syntax:
// Obtain the browser process
var browser = Sys.Browser("iexplore");
// Obtain the page currently opened in Internet Explorer
var page = browser.Page("*");
Also, if you need to access the page's scroll bar, I recommend that you use the http://support.smartbear.com/viewarticle/28868/ program object.
Does this information help?