1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

imacros: Click next link after found text

Discussion in 'Other Scripting Languages' started by robear, May 18, 2013.

Tags:
  1. robear

    robear Newbie

    Joined:
    Jan 20, 2011
    Messages:
    8
    Likes Received:
    6
    my example script clicks the first "rate" button it finds on a page, yet I want it to find some text and then click the next "rate" button on a page which changes from being number 1 to number 5. the search line seems to work, yet the tag line jumps the script back to the top of the page. Thanks
    Code:
        VERSION BUILD=8300326 RECORDER=FX
        TAB T=1
        SET !DATASOURCE C:\Users\admin\Documents\iMacros\Downloads\extract.csv
        SET !DATASOURCE_COLUMNS 1
        SET !LOOP 1
        SET !DATASOURCE_LINE {{!LOOP}}
        URL GOTO={{!COL1}}
        SEARCH SOURCE=TXT:"some text"
        TAG POS=1 TYPE=SPAN ATTR=TXT:*<SP>Rating:<SP>Good<SP>Answer
        WAIT SECONDS=2 
    
     
  2. gustawgustaw

    gustawgustaw Newbie

    Joined:
    Apr 13, 2013
    Messages:
    31
    Likes Received:
    6
    You propably just want to mechanize like for like - it have anti bot feature very similar to things, that you saying.