Legend 181 Posted November 2, 2011 Report Share Posted November 2, 2011 HELP!!! I am working with a csv file of wordpress domains, usernames & passwords that I would like to loop through to perform certain functions. I am stuck at incrementing to the next site. Here is the code I'm working with: clear table(&test)create table from file("C:\\ubot\\domains.csv", &test)loop($table total rows(&test)) { navigate("{$table cell(&test, 1, 0)}/wp-admin/", "Wait") type text(<username field>, $table cell(&test, 1, 1), "Standard") type text(<password field>, $table cell(&test, 1, 2), "Standard") click(<name="wp-submit">, "Left Click", "No") increment(#test)} The increment(#test) is obviously wrong but I can't figure out how to get it looping in v.4. I thought it was relatively straight forward in v.3... what am I overlooking? Seems like it should be something simple but it is eluding me... Thanks in advance,Duane Quote Link to post Share on other sites
osx 0 Posted November 2, 2011 Report Share Posted November 2, 2011 HELP!!! I am working with a csv file of wordpress domains, usernames & passwords that I would like to loop through to perform certain functions. I am stuck at incrementing to the next site. Here is the code I'm working with: The increment(#test) is obviously wrong but I can't figure out how to get it looping in v.4. I thought it was relatively straight forward in v.3... what am I overlooking? Seems like it should be something simple but it is eluding me... Thanks in advance,DuaneGood question! I need to know this too. Quote Link to post Share on other sites
odeesuba 24 Posted November 2, 2011 Report Share Posted November 2, 2011 You need to put the row in variable so you can increase its value. check the code below clear table(&test) create table from file("C:\\ubot\\domains.csv", &test) set(#currentrow, 0, "Global") loop($table total rows(&test)) { navigate("{$table cell(&test, #currentrow, 0)}/wp-admin/", "Wait") type text(<username field>, $table cell(&test, #currentrow, 1), "Standard") type text(<password field>, $table cell(&test, #currentrow, 2), "Standard") click(<name="wp-submit">, "Left Click", "No") increment(#currentrow) } 1 Quote Link to post Share on other sites
Legend 181 Posted November 2, 2011 Author Report Share Posted November 2, 2011 Awesome!! Thanks!!! Quote Link to post Share on other sites
odeesuba 24 Posted November 2, 2011 Report Share Posted November 2, 2011 Awesome!! Thanks!!! Welcome, glad that helped. 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.