Scroll down a page

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
techimac
Posts: 318
Joined: Fri Feb 20, 2015 9:27 pm

Scroll down a page

Post by techimac » Tue Feb 18, 2020 4:15 pm

https://www.google.com/maps/place/Natal ... 94!9m1!1b1

was using this earlier but it don't work now as manual scrolling is not possible
EVENTS TYPE=KEYPRESS SELECTOR="#pane>DIV>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(9)" KEYS="[35,35,35,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,35]"

EVENTS TYPE=KEYPRESS SELECTOR="#pane>DIV>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(7)" KEYS="[35,35,35,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,35]


Firefox 56
iMacros 8.9.7
Windows 8.1
frankhack1
Posts: 83
Joined: Fri Mar 20, 2009 9:12 pm

Re: Scroll down a page

Post by frankhack1 » Wed Mar 18, 2020 7:14 pm

You can use this:

Code: Select all

URL GOTO=javascript:window.scrollBy(0,5000)
Just change the “5000” to any other number to scroll more or less (but always down)
chivracq
Posts: 9507
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Scroll down a page

Post by chivracq » Wed Mar 18, 2020 8:38 pm

techimac wrote:
Tue Feb 18, 2020 4:15 pm
https://www.google.com/maps/place/Natal ... 94!9m1!1b1

was using this earlier but it don't work now as manual scrolling is not possible

Code: Select all

EVENTS TYPE=KEYPRESS SELECTOR="#pane>DIV>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(9)" KEYS="[35,35,35,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,35]"

EVENTS TYPE=KEYPRESS SELECTOR="#pane>DIV>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(7)" KEYS="[35,35,35,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,35]
Firefox 56
iMacros 8.9.7
Windows 8.1
frankhack1 wrote:
Wed Mar 18, 2020 7:14 pm
You can use this:

Code: Select all

URL GOTO=javascript:window.scrollBy(0,5000)
Just change the “5000” to any other number to scroll more or less (but always down)

Yep, nice try, but nope..., won't work on this Page... :(

Very little Explanation from @OP, but I had had a look when they had opened their Thread, took me a while to understand what they want, but if you have a look at the Page, they want to scroll down the Left Panel/Frame to reveal more and more Results/Reviews as you scroll down...

And I don't think 'scrollBy()' will work in this Case, at least applied to the 'window' Element, mini-chance it might still work if applied to the "correct" Element, but not to the 'window' Object...

I had found a "Solution", well 2 actually, but I didn't post it/them as I don't help this User anymore..., which involved "Relative Positioning" applied to the 'EVENT' Mode, or 'EVENT' Mode with a "Dynamic Selector", which are 2 (Advanced) Techniques I don't think I ever posted about (yet), ... and I wasn't going to do it for this User, too bad... Mini-Hint, the Functionality that @OP wants can be achieved "manually" using Tabbing through the DOM... :idea: (And there are probably other Solutions also...)
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
techimac
Posts: 318
Joined: Fri Feb 20, 2015 9:27 pm

Re: Scroll down a page

Post by techimac » Wed Mar 18, 2020 11:50 pm

ok.

Anyone else has the solution?
frankhack1
Posts: 83
Joined: Fri Mar 20, 2009 9:12 pm

Re: Scroll down a page

Post by frankhack1 » Thu Mar 19, 2020 12:46 am

chivracq wrote:
Wed Mar 18, 2020 8:38 pm
techimac wrote:
Tue Feb 18, 2020 4:15 pm
https://www.google.com/maps/place/Natal ... 94!9m1!1b1

was using this earlier but it don't work now as manual scrolling is not possible

Code: Select all

EVENTS TYPE=KEYPRESS SELECTOR="#pane>DIV>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(9)" KEYS="[35,35,35,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,35]"

EVENTS TYPE=KEYPRESS SELECTOR="#pane>DIV>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(7)" KEYS="[35,35,35,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,35]
Firefox 56
iMacros 8.9.7
Windows 8.1
frankhack1 wrote:
Wed Mar 18, 2020 7:14 pm
You can use this:

Code: Select all

URL GOTO=javascript:window.scrollBy(0,5000)
Just change the “5000” to any other number to scroll more or less (but always down)

Yep, nice try, but nope..., won't work on this Page... :(

Very little Explanation from @OP, but I had had a look when they had opened their Thread, took me a while to understand what they want, but if you have a look at the Page, they want to scroll down the Left Panel/Frame to reveal more and more Results/Reviews as you scroll down...

And I don't think 'scrollBy()' will work in this Case, at least applied to the 'window' Element, mini-chance it might still work if applied to the "correct" Element, but not to the 'window' Object...

I had found a "Solution", well 2 actually, but I didn't post it/them as I don't help this User anymore..., which involved "Relative Positioning" applied to the 'EVENT' Mode, or 'EVENT' Mode with a "Dynamic Selector", which are 2 (Advanced) Techniques I don't think I ever posted about (yet), ... and I wasn't going to do it for this User, too bad... Mini-Hint, the Functionality that @OP wants can be achieved "manually" using Tabbing through the DOM... :idea: (And there are probably other Solutions also...)
You are right, this is not working
Post Reply