How to extract a url and use it in another tab.

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
hyperyon112
Posts: 1
Joined: Sun Aug 24, 2014 5:53 pm

How to extract a url and use it in another tab.

Post by hyperyon112 » Sun Aug 24, 2014 8:58 pm

I have this code, and i want to extract this url : href="/news/6144658-19-hours-featured" and open it in a new tab. I tried but i don't know what to put in ATTR . If you can help me with all the syntax it will be wonderful . I marked down the div's with decimals, so it will be easier for you to understand the code.
I use iMacros 8.8.3 Mozilla 31 Windows xp

This is the unique selector of that link :

Code: Select all

article.block:nth-child(1) > div:nth-child(2) > div:nth-child(2) > h1:nth-child(1) > a:nth-child(1)
"TAG POS=n TYPE=type [FORM=form] ATTR=attr [CONTENT=some_content]"
TAG POS=1 TYPE=A FORM=? ATTR=? EXTRACT=HREF
TAB=2
URL GOTO={{!EXTRACT}}

This is the html code:

Code: Select all

<article class="block block-post">
              1 <div class="block-post-content"></div>
                     2<div class="block-post-meta">
                              <a href="www.domain.com">ss</a>
                         <div class="block-meta-author">code</div>
                   2 </div>
                   
                       3<div class="block-post-title">
                         <h1><a href="/news/6144658-19-hours-featured">19 hours featured</a></h1>
                     3</div>
               1</div>
               
             </article>
I
Post Reply