try this,
int pixel=500;
((JavascriptExecutor)driver).executeScript("if(window.screen)
{window.scrollBy(0,"+pixel+");};");
On Apr 2, 10:49 am, Pavithra <
pavi...@gmail.com> wrote:
> I have a scenario below, kindly let me know whether it is automatable using
> webdriver. If so, how ?
>
> Scenario:
> In the mail application, select the message
> Scroll in the middle of the read page -- * How to do scrolling ?*
> Click on up arrow in keyboard
>
> Expected result:
> Verify this should move the content going up in a very short increment on
> read window -- *How to verify this ?*
>
> Thanks,
> Pavithra