SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
347 stars 195 forks source link

Custom option to scroll view into center #4175

Open lukeis opened 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 4175

I am testing a site which has a navbar tied to the top of the page. (bootstrap)

Any attempt to click on an element which is not visible will scroll the element into
view such that it is at the top of the page. This causes the navbar to occlude anything
it would click on if it wasn't already visible on the page.

I attempted a patch to include an option to switch on an already implemented optional
feature but it does not currently work. 

I would appreciate anyone who takes the time to look at this as it effectively makes
the entire site untestable in webdriver.

Reported by patrickbowie on 2012-06-29 18:06:10


lukeis commented 8 years ago

Reported by barancev on 2012-07-03 21:46:49

lukeis commented 8 years ago

Reported by jmleyba on 2012-07-08 22:13:43

lukeis commented 8 years ago
Partially fixed by revision 0ff44ccc9aa3 that implements elementScrollBehavior capability
in FirefoxDriver. But only TOP and BOTTOM modes are supported at the moment. The fix
will be included in the release 2.36

DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability(CapabilityType.ELEMENT_SCROLL_BEHAVIOR, ElementScrollBehavior.BOTTOM);
WebDriver driver = new FirefoxDriver(caps);

Reported by barancev on 2013-09-26 08:57:11

lukeis commented 8 years ago
Issue 5764 has been merged into this issue.

Reported by barancev on 2014-10-01 19:43:01

lukeis commented 8 years ago
Issue 8161 has been merged into this issue.

Reported by barancev on 2014-11-17 06:08:54

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 17:44:49