Random page clicks

  • Автор темы Автор темы billboy
  • Дата начала Дата начала

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
 
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();
}
 
Последнее редактирование:
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
 
It's "produced" by action designer
 

Вложения

  • Action Designer.png
    Action Designer.png
    54,5 KB · Просмотры: 793
Mr Bulldozer

Where would I put that equation ?

Nevadshot

I can't find action designer anywhere !


Bill
 

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