Harisc1990 1 Posted July 7, 2014 Report Share Posted July 7, 2014 Hi, window.scrollTo(0,document.body.scrollHeight); is only scrolling the initial page down and no the pop-up. My issue: I have to click on Terms of Service, then a pop-up appears and i have to scroll down to accept ToS. Any ideas? Quote Link to post Share on other sites
the_way 52 Posted July 10, 2014 Report Share Posted July 10, 2014 does the popup have a menu bar on the right? you could try clicking the down arrow element a few times, or normally just waiting for the popup to load, and actually clicking the agree button can sometimes work too. Quote Link to post Share on other sites
Praney Behl 314 Posted July 10, 2014 Report Share Posted July 10, 2014 Get an id or class or something on the popup and then execute some javascript : var popup = document.getElementById("popupId"); // In case of idvar popup = document.getElementsByClassName("popupClassName") // In case of class as the selector.and then:popup.scrollTo(0, this.scrollHeight); like say for this page here your post (#1) has an id of "post_id_99088" now assume if it was the popup and you needed to scroll down to the bottom of this post here is the code you'll use: var popup = document.getElementById("post_id_99088");popup.scrollTo(0, this.scrollHeight); It would works like a charm Hope it helps Quote Link to post Share on other sites
Harisc1990 1 Posted July 11, 2014 Author Report Share Posted July 11, 2014 Get an id or class or something on the popup and then execute some javascript : var popup = document.getElementById("popupId"); // In case of idvar popup = document.getElementsByClassName("popupClassName") // In case of class as the selector.and then:popup.scrollTo(0, this.scrollHeight); like say for this page here your post (#1) has an id of "post_id_99088" now assume if it was the popup and you needed to scroll down to the bottom of this post here is the code you'll use: var popup = document.getElementById("post_id_99088");popup.scrollTo(0, this.scrollHeight); It would works like a charm Hope it helps For example it's: <class="input-wrapper"> I have to change it to this, right?: var popup = document.getElementsByClassName("input-wrapper") If so, it's not working for me does the popup have a menu bar on the right? you could try clicking the down arrow element a few times, or normally just waiting for the popup to load, and actually clicking the agree button can sometimes work too. It has a slider and down/up arrows but I think that solution will slow my bot down by a lot Sorry for late reply, I was really busy. 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.