Screenshot for element is not working from C# binding

Confirmed Issue #3544183 • Assigned to John J.

Details

Created
Jul 13, 2015
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

Run the following C# code:

 

LaunchDriver();

NavigateToUrl(

http://ie-snap/scratchtests/mustjab/WebDriver/TestSnapshot.htm

);

Screenshot

el_screenshot

=

((

RemoteWebElement

)_driver

.

FindElementById(

“image”

))

.

GetScreenshot();

el_screenshot

.

SaveAsFile(

Path

.

Combine(System

.

Environment

.

CurrentDirectory,

“screenshot_element.png”

),

ImageFormat

.

Png);

 

Expected: Only element is captured

Actual: whole page is captured instead

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Jeff L.”

      Changed Assigned To from “Jeff L.” to “Mustapha J.”

      Changed Status to “By design”

      Changed Assigned To from “Mustapha J.” to “John J.”

      Changed Assigned To to “Jeff L.”

      Changed Status from “By design”

      Changed Assigned To from “Jeff L.” to “John J.”

      Changed Status to “Confirmed”

      Changed Title from “Screenshot for element is not working from C# binding” to “Screenshot for element is not working from C# binding”

    You need to sign in to your Microsoft account to add a comment.

    Sign in