Random page clicks

billboy

Client
Регистрация
24.04.2011
Сообщения
7
Благодарностей
0
Баллы
0
I want to go to a web site click a random link on the page, pause for a random amount of time and then repeat the action.

Sounds simple but I just cannot figure it, Sorry.

Bill
 

nevadahsot

Client
Регистрация
27.04.2012
Сообщения
106
Благодарностей
5
Баллы
18
sample
 

Вложения

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
JavaScript:
var hc = instance.ActiveTab.FindElementsByTags("a");
var r=new Random();
if(hc.Count>0)
{
    hc.GetByNumber(r.Next(0,hc.Count)).RiseEvent("click","Full");
    if(instance.ActiveTab.IsBusy) instance.ActiveTab.WaitDownloading();
}
 
Последнее редактирование:

billboy

Client
Регистрация
24.04.2011
Сообщения
7
Благодарностей
0
Баллы
0
Thanks for that nevadashot

Thats exactly what I was looking for.

However the box "action designer type" where do I find that ?

I have added a rise event but the options available are not the same as your box.

Hope that is clear I just want to have exactly what you have produced but to run it another 5 or 6 times, I just can't duplicate what you have done or able to copy and paste it.

Bill
 

nevadahsot

Client
Регистрация
27.04.2012
Сообщения
106
Благодарностей
5
Баллы
18
It's "produced" by action designer
 

Вложения

billboy

Client
Регистрация
24.04.2011
Сообщения
7
Благодарностей
0
Баллы
0
Mr Bulldozer

Where would I put that equation ?

Nevadshot

I can't find action designer anywhere !


Bill
 

lokiys

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

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