I am using BP version 6.4 and have been experiencing an issue when I attempt to modify
the surface automation after selecting the option from the Application Modeller window:
Regions --> View overlaid on existing screenshot
When I go back in and attempt to modify/add previously spied elements using surface automation
in the Blue Prism Region Editor (selecting Regions --> View overlaid on existing screenshot),
and return back to the Application Modeller window, I receive the following error message:
"Error occurred while retrieving screenshot / regions"
At this point, most, if not all, of my previously spied elements disappear from the Application Explorer
tree.
Here is the error message:
Error occurred while retrieving screenshot / regions
System.NullReferenceException: Object reference not set to an instance of an object.
at AutomateUI.clsRegionConvert.SetRelativeParentRegions(List`1& spyRegions, clsApplicationRegion appRegion, ICollection`1 appRegions)
at AutomateUI.clsRegionConvert.SetRelativeParentRegions(List`1& spyRegions, clsApplicationRegion appRegion, ICollection`1 appRegions)
at AutomateUI.clsRegionConvert.ToSpyRegions(ISpyRegionContainer cont, ICollection`1 appRegs)
at AutomateUI.frmRegionEditor.GetRegions(IWin32Window owner, Bitmap img, ICollection`1 currRegions, EventHandler apply)
at AutomateUI.frmIntegrationAssistant.CaptureRegions(clsRegionContainer cont)
at AutomateUI.frmIntegrationAssistant.HandleOpenScreenshotClick(Object sender, EventArgs e)