I'm trying to test scrolling functionality by selenium webdriver. Same is working in Firefox but not in chrome driver. Here is basic code I'm using for scrolling.
Actions a = new Actions(driver);
WebElement el = driver.findElement(By.xpath("//*[@id='dsm-frame']"));
a.moveToElement(el).clickAndHold().moveByOffset(0, 1000000).release().perform();
Is there any specific reason that Action builder does not work in chrome? Kindly advise how it can be worked in Chrome driver.
Thanks
a.moveToElement(el).build().perform();
– Incuseel.sendKeys(Keys.SPACE);
– Closehauled((JavascriptExecutor)driver).executeScript("window.scrollTo(0,document.body.scrollHeight);");
– Chamomile