I want a program developped in Visual Basic using Visual Studio 2015 that captures screens and controls of the screens. I have developped a program that do this correctly in applications like Excel but not in applications running in browsers. Please look at the attachments for the complete description. The reason I am failing is that I capture controls using AutomationElements what is not suitable for web applications. I suspect I should use RealChildWindowFromPoint by what I saw googleing around.
The arquive [url removed, login to view] contains screens captured as it should be. Note that I establish the rectangle for the first screen captured and will use this rectangle for all the remaining captures. Of course this is not valid for the controls, because I want only the control area captured. Look that [url removed, login to view] is one screen captured while [url removed, login to view] and [url removed, login to view] are the corresponding controls. Look also at [url removed, login to view] to understand why I want to capture the rectangular area. I clicked over the save dialog but the underlying window appears. But I also get the save dialog alone in ZZZ_captura036.png.