Home > scroll in selenium

JavaScriptExecutor in Selenium

Javascript executor is used to execute javascript from selenium. Actions which need to be performed forcibly can be performed using javascript executor. For example selenium not able to click on particular web element due to disable state of it but our requirement is to click on that element. In this

This Article is TAGGED in , , , . Read more

Code to scroll in web page using selenium

Scroll can be done in two ways one is horizontal and another is vertical. In selenium scroll operation is done using JavaScriptExecutor. Code to scroll vertically Down by 500 pixel: [crayon-6767d4621d962136696604/] Code to scroll vertically UP by 500 pixel: [crayon-6767d4621d967365960345/] Code to scroll horizontally RIGHT by 500 pixel: [crayon-6767d4621d969528811441/] Code to scroll horizontally LEFT by 500

This Article is TAGGED in . Read more