Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

getScreenshotAs() in IE driver will cause unwanted scrollbar (IE6/7/8) #2247

Closed
lukeis opened this issue Mar 3, 2016 · 7 comments
Closed

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 2247

What steps will reproduce the problem?

When the content of the page has an expended element (say Table or Div), you can invoke
the IEdriver#getScreenshotAs() to snapshot the current browser page.


What is the expected output?
The page won't cause the browser scrollbar in the snapshot.

What do you see instead?
The page won't cause the browser scrollbar but it will appear inside the snapshot.

Selenium version: 2.3.1
OS: Windows XP
Browser: IE 6/7/8

Reported by jumperchen on 2011-08-12 06:33:01

@lukeis lukeis closed this as completed Mar 3, 2016
@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

The scrollbar that appears is the faint one which appears on all pages which don't explicitly
tell it not to appear. On earlier versions of IE it's not possible in some cases to
get rid of the scrollbar. The scrollbar is part of the client area which is why it's
captured.

I'm not sure whether this counts as an actual bug. I encountered this too and what
I did was to pixel detect the scrollbar then remove it programmatically afterwards.
This is not a perfect solution since scrollbars will look different depending on things
like theming. If it's useful I can upload the code to do this.

Reported by michaelwskwan on 2011-08-16 13:30:26

@lukeis lukeis changed the title placeholder empty issue getScreenshotAs() in IE driver will cause unwanted scrollbar (IE6/7/8) Mar 3, 2016
@lukeis lukeis self-assigned this Mar 3, 2016
@lukeis lukeis reopened this Mar 3, 2016
@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Thanks for the suggestion.
Unfortunately, we cannot use the different result to test our framework - http://www.zkoss.org/
Because we have to verify the real problem in which the result is the same as user
encountered. If we change some CSS to make it look correct, the result may have some
different for the real bug.

BTW, I saw the implementation of the InternetExplorer driver seems to adjust the browser
window size in some conditions, it may be the issue. (I guess)

Reported by jumperchen on 2011-08-16 13:50:34

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2011-10-13 07:51:26

  • Labels added: Browser-IE, Component-RC

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

All active development is focused on Selenium 2.0 (the WebDriver APIs).  Updating issue
priority accordingly.

Reported by jmleyba on 2012-01-04 03:06:22

  • Labels added: Priority-Low

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Is still issue still actual? If it is, please provide an executable scenario and a sample
page to reproduce it.

Reported by barancev on 2013-10-29 17:03:31

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Closing the issue due to inactivity. Also RC is deprecated.

Reported by barancev on 2014-01-09 12:47:27

  • Status changed: Invalid

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:13:29

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant