module-webdriver
module-webdriver copied to clipboard
Unable to use scroll bar
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.
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 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.
I am also facing the same problem is there any method which help in scrolling the window