How to scroll slowly for a certain amount of time?

bambinou

Client
Регистрация
22.08.2011
Сообщения
442
Благодарностей
21
Баллы
18
Hi,

I would like to know the best way to scroll pages which have an infinite scroll. I would like to scroll for perhaps a random amount of time, is there a way to do this please?

Thank you
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Hi,

I would like to know the best way to scroll pages which have an infinite scroll. I would like to scroll for perhaps a random amount of time, is there a way to do this please?

Thank you
Hi. you can always calculate time span by two DateTime.
Just set time in minutes or seconds then check how much time it is now, then saves to a variable, next action is scroll then further you go with time now again and save in different variable.
Then look if time now with previous time now have time span of your required time and continue to scroll or finish.
I hope you will understand something lol.
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
442
Благодарностей
21
Баллы
18
Thanks, yes good idea. I understand don't worry :-).
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)