How to click on the scroll bar | Selenium Forum
M
Posted on 12/11/2015
Hi Ashish / All,


I have a page (see the attached), which has scroll on the left. Its frame.. i want to scroll down i tried all the ways.. but its NOT working... any pointer is useful...

Thanks

Regards
J

M
Replied on 12/11/2015

you have to use javascript executor to scroll down. we have explained that in videos.


M
Replied on 12/11/2015

I tried that way too, its NOT Working, Code is getting passed thru with out doing anything....


IE Browser.


M
Replied on 13/11/2015

show me the code you're using.


M
Replied on 16/11/2015

Here is the way i tried, both are NOT Working

//Click on the Element Menu
Actions actions = new Actions(Page.driver);
WebElement elem = Page.driver.findElement(By.xpath("//*[@id='r1:0:pt1:pt_pa1']"));
actions.moveToElement(elem).click().build().perform();



JavascriptExecutor jse = (JavascriptExecutor)Page.driver;
jse.executeScript("window.scrollBy(0,450)", "");



Thanks

Regards
J


M
Replied on 16/11/2015

[quote:3k7kc5pp]"//*[@id='r1:0:pt1:pt_pa1']"[/quote:3k7kc5pp]

xpath is wrong. create a custom xpath. watch module 13.