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

Remove or ignore duplicate navigation bar #34

Closed
marvelfrozen opened this issue Oct 31, 2017 · 1 comment
Closed

Remove or ignore duplicate navigation bar #34

marvelfrozen opened this issue Oct 31, 2017 · 1 comment

Comments

@marvelfrozen
Copy link

marvelfrozen commented Oct 31, 2017

I am trying to capture full page using Firefox in headless mode.
Using this Shutterbug.shootPage(driver, ScrollStrategy.BOTH_DIRECTIONS), I manage to get it to scroll and shot, but the results kinda looks ugly because we use navigation bar on the top and left.
8db913dabbb19e56
If we try to use shootElement and try to capture the body only, we'll get "Requested element is outside the viewport".

Any idea how we can solve this duplicating issue? Can we maybe ignore spesific elements when capturing?

@marvelfrozen
Copy link
Author

From what I have tried, to achieve 'beautiful' shot of long pages, you have two options:

  • Use PhantomJS driver and maximize the windows
  • Use JQuery to find max height of all elements on page and set the window heigth to that value

I'll close this for now. If anyone have any other idea, please drop a comment.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant