admin管理员组文章数量:1023773
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.
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.
Share Improve this question asked Feb 21, 2016 at 17:57 Isaac AdniIsaac Adni 8414 gold badges14 silver badges29 bronze badges 1- @freestock.tk I'm using iMacros and I'm on a Raspberry Pi... – Isaac Adni Commented Feb 21, 2016 at 18:05
1 Answer
Reset to default 1The 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.
URL GOTO=javascript:window.scrollBy(0,20000)
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.
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.
Share Improve this question asked Feb 21, 2016 at 17:57 Isaac AdniIsaac Adni 8414 gold badges14 silver badges29 bronze badges 1- @freestock.tk I'm using iMacros and I'm on a Raspberry Pi... – Isaac Adni Commented Feb 21, 2016 at 18:05
1 Answer
Reset to default 1The 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.
URL GOTO=javascript:window.scrollBy(0,20000)
本文标签: javascriptScroll down to bottom of page with iMacrosStack Overflow
版权声明:本文标题:javascript - Scroll down to bottom of page with iMacros - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745527979a2154615.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论