webpro 31 Posted February 15, 2015 Report Share Posted February 15, 2015 I don't understand why i am getting the error: YOU HAVE EXCEEDED THE RANGE OF THE LIST clear list(%urls) add list to list($scrape attribute(<outerhtml=w"<a href=\"http://site.com/tr.php?id=*\" target=\"_blank\"> <img src=\"*\" width=\"110\" height=\"110\" style=\"border:1px solid black\"></a>">,"fullhref"),%urls,"Delete","Global") navigate($next list item(%urls),"Wait") %urls is filled with 0 http://site.com/tr.php?id=123 1 http://site.com/tr.php?id=124 2 http://site.com/tr.php?id=125 3 http://site.com/tr.php?id=126 If i launch the script i get the error right after it has scrapped. It doesn't navigate to the first url ? Is this a bug ? Is it doing this on your end ?Just upgraded to 5.5.12 Thanks http://i59.tinypic.com/1045dvs.jpg EDITEDOdd ? I see in PINK , my scrape attribute code when i search for a command, in the search tool box what the heck ???Along with: $scrape attribute$scrape listetc... Quote Link to post Share on other sites
itexspert 47 Posted February 15, 2015 Report Share Posted February 15, 2015 Instead of using Parameter $next List Item make a variable called #list posThen Set value of this Varuable to 0Then Navigate to $List Item and Position of the List is located inside #list posand increment the variable #list pos after every Loop and you will be fine Like Thisclear list(%urls)add list to list($scrape attribute(<outerhtml=w"<a href=\"http://site.com/tr.php?id=*\" target=\"_blank\"><img src=\"*\" width=\"110\" height=\"110\" style=\"border:1px solid black\"></a>">,"fullhref"),%urls,"Delete","Global")set(#list pos,0,"Global")loop(2) { navigate($list item(%urls,#list pos),"Wait") wait(3) increment(#list pos)} 1 Quote Link to post Share on other sites
webpro 31 Posted February 15, 2015 Author Report Share Posted February 15, 2015 Thanks mate Also guys make sure to use clear list(%urls) add list to list(%urls,$scrape attribute(<outerhtml=w"<a href=\"http://site.com/tr.php?id=*\" target=\"_blank\"> <img src=\"*\" width=\"110\" height=\"110\" style=\"border:1px solid black\"></a>">,"fullhref"),"Delete","Global") navigate($next list item(%urls),"Wait") Quote Link to post Share on other sites
unibotsi 7 Posted January 17, 2019 Report Share Posted January 17, 2019 And for the future reader: If you have 99 Items in your list - you will need 98 loops. Quote Link to post Share on other sites
stanf 43 Posted January 19, 2019 Report Share Posted January 19, 2019 And for the future reader: If you have 99 Items in your list - you will need 98 loops. if you have 99 items you will need 99 loops.0 to 98 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.