Branch creator vs Debugger: Link hunting

factory

Новичок
Регистрация
04.12.2011
Сообщения
3
Благодарностей
0
Баллы
0
Okay so here's the story ..

I'm fresh learning Zennoposter, I have a bit of programming/scripting background so I'm not totally retarded. I'm trying to pull the 'Next' link from the big G's places pages. I've got the branch creator succesfully grabbing the exact link I want, when I slap this into a rise click event it just fails out saying it cant find what it needs. Note: it looks like there are two Next links if I just do a text search so I needed to weed it down to just get the right one using a regex search and outerhtml. Branch creator finds the link, debugger does not. I double-checked that the same shit I saw in branch creator was infact on the live debug page by copying the DOM from the running debugger and sticking it in the regex checker which DOES find the link..

Is there some stupid thing I'm missing here? I did this with different methods (innertext match # and some others I cant remember) from the Branch Creator and they all seem to fail out in the debugger, cannot find the link.. Any advice would be really appreciated!
 

factory

Новичок
Регистрация
04.12.2011
Сообщения
3
Благодарностей
0
Баллы
0
Looks like the match # defaulted to -1, when I changed it to 0 it started working as I expected in the debugger.
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
First you need to get out, take some fresh air and calm down :D

I dont know have you tried setting it this way, but this works just fine for me...

Branch: Rise-Html

Tab: page
Document: 0
Form#: -1
Tag: a

Search criteria
Atribute name: innertext; Attribute value: Next; Search: text; match#: 0

Calling event

event name: click


Like i said, this works fine for me ;-)
 

factory

Новичок
Регистрация
04.12.2011
Сообщения
3
Благодарностей
0
Баллы
0
Lol I'm not that frustrated but you're right it's good to take a breather when the goin gets tough! :-) Okay so I think I tried exactly the way you mention, in the Branch Creator matching the innertext show two matches, it works fine until the last page (which has no Next link) where it just keeps 'refreshing' the page in an endless loop. It was this looping action that prompted me to try to find the exact Next link that was needed.
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
you need to add negative exit, in case there is no next any more, it will exit to something you wish (pause or something else)
 

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