Fahu123 0 Posted November 14, 2018 Report Share Posted November 14, 2018 You know how you can have multiple sub channels under one account on youtube? I am trying to make the bot click on a sub channel, then complete an action and do it on every account down the list. from https://www.youtube.com/channel_switcher Quote Link to post Share on other sites
HelloInsomnia 1103 Posted November 15, 2018 Report Share Posted November 15, 2018 Maybe something lke this: navigate("https://www.youtube.com/channel_switcher","Wait") wait(3) clear list(%accounts) add list to list(%accounts,$scrape attribute(<login link>,"fullhref"),"Delete","Global") set(#offset,1,"Global") loop($subtract($list total(%accounts),1)) { click($element offset(<login link>,#offset),"Left Click","No") increment(#offset) wait for browser event("Everything Loaded","") wait(3) alert("do stuff") navigate("https://www.youtube.com/channel_switcher","Wait") wait(3) } Quote Link to post Share on other sites
Fahu123 0 Posted November 15, 2018 Author Report Share Posted November 15, 2018 Maybe something lke this: navigate("https://www.youtube.com/channel_switcher","Wait") wait(3) clear list(%accounts) add list to list(%accounts,$scrape attribute(<login link>,"fullhref"),"Delete","Global") set(#offset,1,"Global") loop($subtract($list total(%accounts),1)) { click($element offset(<login link>,#offset),"Left Click","No") increment(#offset) wait for browser event("Everything Loaded","") wait(3) alert("do stuff") navigate("https://www.youtube.com/channel_switcher","Wait") wait(3) }Thank you so much!! exactly what I needed. 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.