How to click links nested in other element tag?

hotohori

Client
Регистрация
10.02.2012
Сообщения
154
Благодарностей
40
Баллы
28
HTML:
<li id="" class="newvideo clip_1">
<div class="wrap">
<a class="img" title="Today Is A Sunny Day" target="" href="http://www.videosite.com/view_video.php?viewkey=5523687">
<img id="v4302370" class="rotating" width="160" height="120" onmouseout="endThumbChange('v4302370', 'http://www.videosite.com/thumbs/004/302/370/small.jpg?cache=8788008', 0, 1)" onmouseover="startThumbChange('v4302370', 16, 'http://www.videosite.com/thumbs/004/302/370/')" alt="Today Is A Sunny Day" src="http://www.videosite.com/thumbs/004/302/370/small.jpg?cache=8788008">
</a>
<div class="thumbnail-info-wrapper">
</div>
</li>
Hi Zenno Experts,

How do I get ZP to click on the url inside <li id="" class="newvideo clip_1">?
Basically what I like to accomplish is that on a video site, there is a list of new videos which will change daily. So the title text and href will always change. What is remain unchange is the tag "<li id="" class="newvideo clip_1">".

So how do I get ZP to click whatever link that is inside the <li id="" class="newvideo clip_1"> tag?

Oh, and how do I get it to open in a new tab?

Thank you guys! :-)

Best Regards.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 708
Баллы
113
Use action designer:

Find element li with class newvideo clip_1 and check GET outerhtml
You'll get this code as you wrote in your example.
After that use word processing - regex

And use this regex to get URL: (?<=href=").*(?=")

Then use Tab - Open and Goto page actions
 

hotohori

Client
Регистрация
10.02.2012
Сообщения
154
Благодарностей
40
Баллы
28
Hey hey, thank you Rostonix! :az:
That works!
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 708
Баллы
113

hotohori

Client
Регистрация
10.02.2012
Сообщения
154
Благодарностей
40
Баллы
28
Hi guys,

I have another similar question... , but this time I need to click a button instead of an url. How to make ZP perform click action on this button identify by element or text around it?

Thanks in advance!
 

hotohori

Client
Регистрация
10.02.2012
Сообщения
154
Благодарностей
40
Баллы
28
Hi guys,

Really need some help here.

Ok..., actually I'm trying to make a youtube comment voter.
The thumbs up button tag <button...></button> is all the same throughout the page. I can only find the comment I want to vote either by <li> or the text just outside of the <button> element. But I do not know how to make zenno perform click on the button with a second action.

hmm... I'm not sure if I explained my difficulty right. Please bare with me. :-)
 

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