achand
13 years agoContributor
capturing entire page
If there any way we can capture entire page, the page scroll bar.
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 ScrollBar program object.
Does this information help?