leboseo 0 Posted August 18, 2015 Report Share Posted August 18, 2015 Hi I cant figure out why when I add list to elem list item causing the bot to also click next page,on top of that if I take out $list item and put some random text it works just fine.cant figure out what is causing it to click next page. any help would be appreciated Thanks Quote Link to post Share on other sites
deliter 203 Posted August 18, 2015 Report Share Posted August 18, 2015 please post your code Quote Link to post Share on other sites
leboseo 0 Posted August 18, 2015 Author Report Share Posted August 18, 2015 (edited) clear list(%email)add list to list(%email,$list from file("C:\\Users\\kp. -89o9\\Desktop\\ubot\\email.txt"),"Don\'t Delete","Global")add list to list(%credit,$list from file("C:\\Users\\kp. -89o9\\Desktop\\ubot\\vat.txt"),"Delete","Global")add item to list(%state,$list from file("C:\\Users\\kp. -89o9\\Desktop\\ubot\\state.txt"),"Don\'t Delete","Global")add list to list(%phone number,$list from file("C:\\Users\\kp. -89o9\\Desktop\\ubot\\phone numbers .txt"),"Delete","Global")add list to list(%city,$list from file("C:\\Users\\kp. -89o9\\Desktop\\ubot\\city.txt"),"Delete","Global")add list to list(%address,$list from file("C:\\Users\\kp. -89o9\\Desktop\\ubot\\addresses .txt"),"Delete","Global")add list to list(%full name,$list from file("C:\\Users\\kp. -89o9\\Desktop\\ubot\\first and last name.txt"),"Delete","Global")add list to list(%zip code,$list from file("C:\\Users\\kp. -89o9\\Desktop\\ubot\\zip code.txt"),"Delete","Global")set list position(%zip code,0)set list position(%credit,0)set list position(%city,0)set list position(%full name,0)set(#totallist,$list total(%email),"Global")loop(#totallist) { navigate($random list item($list from file("C:\\Users\\kp. -89o9\\Documents\\site urls.txt")),"Wait") wait(10) click($element offset(<id="a-autoid-1-announce">,0),"Left Click","No") wait(6) click(<innertext=r"Proceed to checkout">,"Left Click","No") wait(5) click(<id="ap_signin_create_radio">,"Left Click","No") type text(<email field>,$list item(%email,0),"Standard") click(<login button>,"Left Click","No") wait($rand(4,15)) type text(<name="customerName">,$list item(%full name,0),"Standard") type text($element offset(<email field>,1),$list item(%email,0),"Standard") type text($element offset(<password field>,0),"ades123","Standard") type text($element offset(<password field>,1),"ades123","Standard") wait($rand(15,60)) click(<name="continue">,"Left Click","No") wait(7) type text($element offset(<full name field>,0),$list item(%full name,0),"Standard") type text($element offset(<address line1 field>,0),$next list item(%address),"Standard") type text($element offset(<city field>,0),$next list item(%city),"Standard") type text($element offset(<id="enterAddressPostalCode">,0),$next list item(%zip code),"Standard") type text(<phone field>,$next list item(%phone number),"Standard") type text(<state field>,$list item(%state,0),"Standard") wait(4) click(<value="Continue">,"Left Click","No") click($element offset(<class="a-button-text">,0),"Left Click","No") click($element offset(<class="a-button-text a-declarative">,0),"Left Click","No") click(<data-value=8>,"Left Click","No") click($element offset(<class="a-button-text a-declarative">,1),"Left Click","No") click(<data-value=2016>,"Left Click","No") type text(<full name field>,$list item(%full name,0),"Standard") type text(<name="addCreditCardNumber">,$next list item(%credit),"Standard") click(<id="ccAddCard">,"Left Click","No") wait($rand(6,12)) click(<id="continue-top">,"Left Click","No") wait(7) click(<name="placeYourOrder1">,"Left Click","No") wait(5) mouse over(<id="nav-link-yourAccount">,"No") click($element offset(<login link>,1),"Left Click","No") pause script wait(2) remove from list(%email,0) remove from list(%full name,0) remove from list(%state,0) clear cookies plugin command("WindowsCommands.dll", "click mouse", "HMA! Pro VPN", "WindowsForms10.Window.8.app.0.11ecf05", 325, 485, "Left Click") wait(30)}add list to list(%list,$list from file("C:\\Users\\kp. -89o9\\Desktop\\ emails.csv"),"Delete","Global") Edited August 18, 2015 by leboseo Quote Link to post Share on other sites
leboseo 0 Posted August 18, 2015 Author Report Share Posted August 18, 2015 the state field is the one giving me problems thanks Quote Link to post Share on other sites
the_way 52 Posted August 18, 2015 Report Share Posted August 18, 2015 You never heard of defines? Quote Link to post Share on other sites
leboseo 0 Posted August 18, 2015 Author Report Share Posted August 18, 2015 I am not sure what you are referring to please clarify 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.