Clicking random search result

flexfanatic

Client
Регистрация
03.11.2011
Сообщения
19
Благодарностей
3
Баллы
0
I created a simple template that will enter a search term pulled from a text file (one line) places it in the search field and then clicks the submit button.

Would I need to configure is randomly clicking one of the returned search results links (one of the returned on the first page). Anyone know the syntax for doing this.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
You should find some common search criterias for these links to find them and use random in the match field to click on the random. Knocking me on skype if I explain something isn't clear.
 

flexfanatic

Client
Регистрация
03.11.2011
Сообщения
19
Благодарностей
3
Баллы
0
I'm not sure what you mean. Say I do a search term for white diamonds. It then displays 10 results and I need to automate a click on one of them. Using project maker I can click on a link which is fine but now I need to randomize it. Can I do a search for "http://" and then do a random click on the results?
 

joma

Client
Регистрация
06.03.2011
Сообщения
107
Благодарностей
13
Баллы
0
that link should have a match from 0 to 9 or something. Just put a macro randomizing and int between 0 and 9 and paste it on the match field
 

flexfanatic

Client
Регистрация
03.11.2011
Сообщения
19
Благодарностей
3
Баллы
0
that link should have a match from 0 to 9 or something. Just put a macro randomizing and int between 0 and 9 and paste it on the match field
But what about the other attribute values? For example for group# I have value of 0, Attribute name href, Attribute value www\.google\.com, Search type regexp, and match# {-Random.Int-|-0-|-9-}
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
go to search results and get dom, put it to regex builder and find what all search results have in common...
that is what you need in search table.
 
  • Спасибо
Реакции: flexfanatic

shinigami

Client
Регистрация
01.05.2011
Сообщения
164
Благодарностей
91
Баллы
0
Exactly as drvosjeca said you should find something common in all of links. If it is not possible to find similar by one criteria, add another one criteria with the same group number such way, that both criterias make necessary results.
 

flexfanatic

Client
Регистрация
03.11.2011
Сообщения
19
Благодарностей
3
Баллы
0

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
I have just created and sent you working template for this... ;-)

i hope you learn something from this
 
  • Спасибо
Реакции: flexfanatic

flexfanatic

Client
Регистрация
03.11.2011
Сообщения
19
Благодарностей
3
Баллы
0

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