I want to move the vertical and horizontal scrollbar that exists within the webpage itself.
I inspected an element.
<div id="DashboardPageContentDiv" class="DashboardPageContentDiv" style="height: 521px; overflow: auto;">
Method:
public void scrollbardown(RemoteWebDriver remoteWebDriver) throws Exception {
try
{
JavascriptExecutor jse = (JavascriptExecutor)remoteWebDriver;
jse.executeScript("window.scrollBy(0,2500)", "");
}
catch (Exception exc)
{
}
}
Frame Source Code:
<iframe allowtransparency="true" id="symbUrlIFrame2" src="/cos/start.swe?SWECmd=GetCachedFrame&SWEC=13&SWEFrame=symbUrlIFrame2&SRN=xaU5eD1S1IOkspAeHu524NMsHC5h5jzSUipwpmEq8bYb " height="800" width="100%" style="height: 607px; position: relative;"></iframe>