SCROLL DOWN THE WEBSITE WITH iMACRO.

hello, Today I will present How to scroll down web site by iMacro.
If you use iMacro for your jobs and you have a problem iMacro don't scroll down and web site don't load the data content.
Some web site we need to scroll down for load more the data content, But basic iMacro can't do that, We need to use javascript to solve this problem.
How to scroll down web site by iMacro
How to scroll down web site by iMacro

How to scroll down web site by iMacro

Ok, the First step  I will create a variable name numberScroll equal 100.
And after that I will use a command FOR in javascript create loop for my scroll, I use the name of a variable "i" equal 1 and for this example, I will create 10 loops, I mean scroll down 10 times, for example, If you need more times you can add any number.
In command FOR I will use the command window.scrollBy() and within brackets.
The first number means scroll to right and the second number means scroll down.
The first number I will use a number 0 and separated by commas follow with a number is you want but this example I will use the first number from variable numberScroll for scroll down to Y-axis.
In video, you can see I will use command iMacro for delay 1 time per scroll.
And after that, we will plus number in the variable 200, I mean in one loop this variable will plus the number 200 per loop and you can see web site scrolling down.
OK, See example in video.


var numberScroll = 100;
for(i = 1; i<= 10; i++){
     window.scrollBy(0,numberScroll); var imcode;
     imcode = 'CODE:';
     imcode += 'WAIT SECONDS=1' + '\n';
     iimPlay(imcode);

     numberScroll = numberScroll+200;
};

1 comment:

SCROLL DOWN THE WEBSITE WITH iMACRO.

hello, Today I will present How to scroll down web site by iMacro. If you use iMacro for your jobs and you have a problem iMacro don't ...