Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taking a snapshot of an iframe with scroll bars #30

Closed
richard919 opened this issue Sep 23, 2017 · 2 comments
Closed

Taking a snapshot of an iframe with scroll bars #30

richard919 opened this issue Sep 23, 2017 · 2 comments
Assignees
Milestone

Comments

@richard919
Copy link

Hello,
I'm trying to take a snapshot of an iframe element that has a scrollbar. Does anyone know of a way to do this that would be less invasive than creating a forked version of selenium-shutterbug with a new function similar to Browser.takeScreenshotEntirePage() that would scroll through an iframe and create an image of the whole iframe?

I'm using shutterbug as a part of Fitnesse/Xebium/Selenium in order to do regression testing, so I don't have access to the webpage that I'm taking a screenshot of (so I can't get rid of the scroll bars). I'm not going to post a picture of the system I'm testing (I don't think the person who owns that system would be alright with that), but to help give an idea of what I'm talking about, the iframe has scroll bars similar to the code box in the following screenshot:

screenshot_6

@glibas
Copy link
Member

glibas commented Oct 2, 2017

Hi @richard919 ,

Currently shutterbug doesn't support scrolling withing iframes. I'll take a look at possible options and get back to asap.

Thanks,
Glib

@glibas
Copy link
Member

glibas commented Aug 11, 2020

Implemented in v1.0 e.g

Shutterbug.shootFrame(driver, driver.findElement(By.id("myFrame")),
                Capture.FULL_SCROLL).save();

@glibas glibas closed this as completed Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants