sazuka 0 Posted February 4, 2016 Report Share Posted February 4, 2016 I have a text box in which I enter several names. I want ubot to enter them 1 by 1 but somehow it copies the whole list and enters the whole thing...What did i do wrong? ui block text("names",#names) add item to list(%names,$list from text(#names,$new line),"Don\'t Delete","Global") navigate("http://url.com","Wait") wait(4) type text(<name="names">,$next list item(%names),"Standard") Quote Link to post Share on other sites
pash 504 Posted February 4, 2016 Report Share Posted February 4, 2016 (edited) try ui block text("names",#names) add list to list(%names,$list from text(#names,$new line),"Don\'t Delete","Global") set list position(%names,0) loop($list total(%names)) { navigate("http://url.com","Wait") wait(4) type text(<name="names">,$next list item(%names),"Standard") }Oh, sorry, I'm hurry sleeping. It was not inspected and tested.Edited Edited February 5, 2016 by pash Quote Link to post Share on other sites
sazuka 0 Posted February 4, 2016 Author Report Share Posted February 4, 2016 (edited) same problem , pastes the whole list instead of 1 item maybe a bug or i made a mistake? Edited February 4, 2016 by sazuka Quote Link to post Share on other sites
HelloInsomnia 1103 Posted February 4, 2016 Report Share Posted February 4, 2016 The problem is you are using add item to list and you need to be using add list to list, try this: ui block text("names",#names) clear list(%names) add list to list(%names,$list from text(#names,$new line),"Delete","Global") navigate("http://url.com","Wait") wait(4) type text(<name="names">,$next list item(%names),"Standard") Quote Link to post Share on other sites
sazuka 0 Posted February 4, 2016 Author Report Share Posted February 4, 2016 Thanks that solved it! 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.