webpro 31 Posted March 4, 2023 Report Share Posted March 4, 2023 clear list(%click3) add list to list(%click3,$scrape attribute(<outerhtml=w"<a href=\"*\" class=\"mybtn\" target=\"_blank\">Visit This Website</a>">,"fullhref"),"Don\'t Delete","Local") loop($list total(%click3)) { navigate($next list item(%click3),"Wait") wait(5) } What's in %click3: 0 https://site.com 1 https://site2.com 2 https://site3.com etc.... So i guess it scrapped alright? Now how come i get this: "YOU HAVE EXCEEDED THE RANGE OF THE LIST" Quote Link to post Share on other sites
PRO 69 Posted March 16, 2023 Report Share Posted March 16, 2023 Hello, UBot starts to count from 0. Means your first list entry will be the entry number zero, not one. This is why it exceeds the range of the list in your example. Try like this: set(#counter,0,"Global") clear list(%click3) add list to list(%click3,$scrape attribute(<outerhtml=w"<a href=\"*\" class=\"mybtn\" target=\"_blank\">Visit This Website</a>">,"fullhref"),"Don\'t Delete","Local") loop while($comparison(#counter,"< Less than",%click3)) { navigate($next list item(%click3),"Wait") wait(5) increment(#counter) } 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.