Jump to content
UBot Underground

How to scroll down a pop-up?


Recommended Posts

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? :wacko:

Link to post
Share on other sites

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. 

Link to post
Share on other sites

Get an id or class or something on the popup and then execute some javascript :

 

var popup = document.getElementById("popupId");   // In case of id

var 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 ;)

Link to post
Share on other sites

Get an id or class or something on the popup and then execute some javascript :

 

var popup = document.getElementById("popupId");   // In case of id

var 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 :wacko:

 

Sorry for late reply, I was really busy.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...