Reputation: 841
I'm running an iMacro in Iceweasel (Firefox) on my Raspberry Pi. However, I can't seem to get it to scroll down to the bottom of the page. This is what I am currently using (and it isn't working):
TAG POS=1 TYPE=A ATTR=TXT:Your<SP>Tasks
URL GOTO=javascript:window.scrollBy(0,20000)
The first line of the code clicks a button in order to navigate to a new webpage. The second line is meant to scroll down to the bottom of the page, but doesn't.
Upvotes: 1
Views: 13512
Reputation: 841
The trick is to set !WAITPAGECOMPLETE
to YES
and then use URL GOTO
instead of just clicking on the button with TAG
. This means that the new page will be loaded before the javascript is executed.
SET !WAITPAGECOMPLETE YES
URL GOTO=https://example.com
URL GOTO=javascript:window.scrollBy(0,20000)
Upvotes: 1