page.PagePicture - Screenshot duplication
Hi everyone,
I seem to have an intermittent issue when using the method page.PagePicture(0,0,-1,-1) with Oracle Cloud Applications.
If I try to capture a screenshot of a full page (e.g., var shot = page.PagePicture(0,0,-1,-1)) where the canvas spans more than what is displayed onscreen, and then save that screenshot to Stores Regions (e.g., Regions.AddPicture(shot, "My Screenshot")), I will intermittently get a screenshot where the top part of the screen is duplicated, and the bottom is truncated. Rather than getting a full screenshot, the result is incomplete.
As I mentioned, this issue is intermittent and seems to be related to the speed at which the webpage reacts to the page.PagePicture(0,0,-1,-1) method call.
To address this, I’ve tried the following steps to slow down the process:
- aqUtils.Delay(3000);
- Options.Web.CSSTransitionForPagePicture (tested with both true and false)
- Options.Web.WebPageLoadingTimeout = 120000;
- Options.Run.Delay = 500;
- page.Wait(10000);
- page.Keys("[Esc]");
Unfortunately, none of these have resolved the issue.
Questions:
- Am I missing any additional settings or methods that could help ensure the full page is captured consistently?
- Has anyone else experienced a similar issue with page.PagePicture(0,0,-1,-1) in Oracle Cloud Applications or other web applications?
Any insights or suggestions would be greatly appreciated!
Thank you in advance for your help.