Scrolling with Selenium's Execute Javascript node

Hello everybody,

I have a problem with the execute javascript node in my workflow to retrieve informations on the Dimensions website.

To get more results, it move the cursor down to load a new page of results.

To do this, I use the following command line in Selenium’s execute javascript node :
window.scrollTo(0, document.body.scrollHeight);

This command loads several pages in a row which makes it difficult and slow to exploit html code by findelement node.
Is there any way to modify this command to load page by page?
KNIME_project7.knwf (48.5 KB)
Thank you for your help.

Best regards,


Hi @Chris_88,

Maybe you wanna try the focus() function:

Or if it doesn’t work, find the last element using the Find Elements node and run this code in the Execute JavaScript node while checking the last element in the arguments list.



Hi armingrudd,

Thanks for your help.

Best regards,


1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.