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-673673949110d354059546/] Code to scroll vertically UP by 500 pixel: [crayon-6736739491111932319124/] Code to scroll horizontally RIGHT by 500 pixel: [crayon-6736739491113413846953/] Code to scroll horizontally LEFT by 500

This Article is TAGGED in . Read more