-Illuminati- 1 Posted November 15, 2015 Report Share Posted November 15, 2015 So I am trying to click the upvote element from a reddit post: https://www.reddit.com/r/nfl/comments/3ssu1v/the_2015_cardinals_are_on_their_way_to_becoming/cx02unv And I cannot get it to click the upvote icon even with offset set to 1. Someone helped me in another thread by writing Js to click the element. So I am trying to do that but having trouble. I've combined these sources, but don't know how to piece them together to click the upvote icon for the first comment here: https://www.reddit.com/r/nfl/comments/3ssu1v/the_2015_cardinals_are_on_their_way_to_becoming/cx02unv http://www.w3schools.com/jsref/prop_nodelist_length.asphttp://www.w3schools.com/jsref/met_document_getelementsbyclassname.asphttp://www.w3schools.com/jquery/css_offset.asp Quote Link to post Share on other sites
deliter 203 Posted November 15, 2015 Report Share Posted November 15, 2015 set(#prompt,$prompt("paste CSS path"),"Global")run javascript("document.querySelectorAll(\"{#prompt}\")[0].click()") make sure to Run Ubot with Chrome 39 in settings(Ubot 5.9+),doesnt work with 21 Click view in Ubot,and open web inpector,click the magnify glass,on the top left hand side,then click the arrow you want to upvote go back to web inspector,the area will be highlighted in blueright click the area in blue,and select "copy CSS path" example CSS path for the upvote of the main post #thing_t3_3ssu1v > div.midcol.unvoted > div.arrow.login-required.access-required.up 1 Quote Link to post Share on other sites
-Illuminati- 1 Posted November 15, 2015 Author Report Share Posted November 15, 2015 set(#prompt,$prompt("paste CSS path"),"Global")run javascript("document.querySelectorAll(\"{#prompt}\")[0].click()") make sure to Run Ubot with Chrome 39 in settings(Ubot 5.9+),doesnt work with 21 Click view in Ubot,and open web inpector,click the magnify glass,on the top left hand side,then click the arrow you want to upvote go back to web inspector,the area will be highlighted in blueright click the area in blue,and select "copy CSS path" example CSS path for the upvote of the main post #thing_t3_3ssu1v > div.midcol.unvoted > div.arrow.login-required.access-required.up Doesn't seem to do anything for me. Could you upload the script you used to do it? Possibly I am missing something following your directions. Quote Link to post Share on other sites
jason 101 Posted November 16, 2015 Report Share Posted November 16, 2015 Doesn't seem to do anything for me. Could you upload the script you used to do it? Possibly I am missing something following your directions. You need to be on Ubot Studio 5.9+ to select Chrome 39 as your browser in the options menu. This script does not work on the version of UBot Studio that you're using. Quote Link to post Share on other sites
-Illuminati- 1 Posted November 17, 2015 Author Report Share Posted November 17, 2015 You need to be on Ubot Studio 5.9+ to select Chrome 39 as your browser in the options menu. This script does not work on the version of UBot Studio that you're using.Dang... That's really unfortunate. Upgrading isn't the problem. The newer features could really help, but I don't have the funds to do so. Has it been tested in the major UA's or is that individual UA the only working one? 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.