module-webdriver icon indicating copy to clipboard operation
module-webdriver copied to clipboard

Unable to use scroll bar

Open vaidy160490 opened this issue 10 years ago • 3 comments

I am unable to use the scroll bar to scroll up and down, due to this i am unable to click on an element which can be seen only when i scroll down. Any way around this? or command that needs to be used. Please help.

vaidy160490 avatar Sep 21 '15 02:09 vaidy160490

Used the following code to perform scroll but does't seem to be performing the scroll action, doesn't fail as well: $I->executeJS('window.scrollTo(X,Y)'); Finding X: document.getElementById('action-scroller').scrollLeft Finding Y: document.getElementById('action-scroller').scrollTop

vaidy160490 avatar Sep 21 '15 03:09 vaidy160490

@vaidy160490 Just an idea: Maybe it is a div which get scrolled in your project and not the window object directly? This could be the reason why window.scrollTo() seems to fail.

pablopaul avatar Nov 29 '16 10:11 pablopaul

I am also facing the same problem is there any method which help in scrolling the window

abhayp-cedcoss avatar Nov 01 '17 14:11 abhayp-cedcoss