Won't Fix
Last Updated: 03 Apr 2023 21:21 by ADMIN
ADMIN
Nikolay Petrov
Created on: 30 Nov 2016 07:12
Type: Bug Report
1
Problem with .Capture() on element method in Chrome - captures all scree content in element rectangle
If you use a Capture() method in Chrome for an element that is not visible or some other window is shown over it, the captured image will contain all visible data on screen, not only the element image. 
This works fine in IE
2 comments
Aaron
Posted on: 20 Dec 2016 12:34
Just to put in my two cents, the main reason this was even an issue for me was because the element I was trying to capture is higher than the screen height (it extends above and below). This was causing the top of the browser and my task bar on the bottom to be included in the capture image. 

Hence why it was an issue in Chrome, but worked fine in IE (where it works properly). In this case, I don't really have a way to work around it as I can't really guaruntee what is on my taskbar or if my bookmarks change or anything.
ADMIN
Daniel Djambov
Posted on: 20 Dec 2016 08:40
Telerik: actually the scroll step has nothing to do with the issue - in the example provided the scroll is used on a different element and image is off the screen that is why it cannot be seen. If you scroll to top or bottom the proper element everything works as expected. The problem with Chrome capture is that it captures all windows above the element itself. In case of quick execute window being shown over the captured element, it will also be shown in the capture. I will change the description of the feedback item to accommodate the proper behavior. As a workaround in the mean time you can either use Scroll to page top for the element before the capture or use Quick Run without Debugger to be shown - in this case the image captured will be exact in all browsers (IE, FF, Chrome, etc.).