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-661e08c770058275599553/] Code to scroll vertically UP by 500 pixel: [crayon-661e08c770062356415765/] Code to scroll horizontally RIGHT by 500 pixel: [crayon-661e08c770067477474061/] Code to scroll horizontally LEFT by 500

This Article is TAGGED in . Read more